ioBroker / ioBroker.rest-api

Swagger UI for ioBroker
Apache License 2.0
12 stars 8 forks source link

avoid reserved words in naming of types in the swagger.yaml #38

Open mike-boddin opened 2 years ago

mike-boddin commented 2 years ago

Is your feature request related to a problem? Please describe.

When I autogenerate a java-client from the swagger-API I get conflicts with the Object-Type as Object is the default-type in Java (java.lang.Object).

Describe the solution you'd like

It would be helpful, if the type Object is renamed to something like IoBrokerObject or something similar

Additional context

In this example (the generated State-Class), actually there is an java.lang.Object expected, but the code compiles to the "IoBroker"-Object, so we get serialization-errors when querying the states from the API:

2022-10-10 12_34_20-Clipboard