swagger editor generated client has issues

Hi Anton,

The variable type for "atributes": {} OR "attributes": {} fields in swagger.json get generated as ERRORUNKNOWN member variables in the model classes. This requires extra effort in fixing the auto generated code. Can we get rid of them in case we are not using them ? I checked the model classes in the server code and did not find any reference, Have I missed noticing them ?
Example in Position.java:

@SerializedName("attributes")
private ERRORUNKNOWN attributes = null;

Thanks.

Anton Tananaev5 years ago

If course we are using attributes.

In that case why have we missed the type for these in swagger file.

Anton Tananaev5 years ago

Because there is no type. It's a dictionary that can contain different types.

There exists data models in the specification for defining dictionaries. Here is the link on how to define them dictionary object.

By the way is this a typo "atributes": {} OR "attributes": {} ?

Anton Tananaev5 years ago

Yes, it's probably a type. You are welcome to send a pull request with correct type specification.

Here it is Swagger Fixes.