If course we are using attributes.
In that case why have we missed the type for these in swagger file.
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": {}
?
Yes, it's probably a type. You are welcome to send a pull request with correct type specification.
Here it is Swagger Fixes.
Hi Anton,
The variable type for
"atributes": {} OR "attributes": {}
fields in swagger.json get generated asERRORUNKNOWN
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.