Carapacik / swagger_parser

Dart package that takes an OpenApi definition file and generates REST clients based on retrofit and data classes for your project.
https://pub.dev/packages/swagger_parser
MIT License
90 stars 38 forks source link

additionalProperties can $ref another schema #122

Closed theoolee closed 10 months ago

theoolee commented 10 months ago

As swagger document said, the $ref used in additionalProperties should be treated as an object, not a map. After 196a3ef2413431c83f562211ff8a56bcf7ffda7c, the commit b4a4698fa1c3c351e256369e387680d77fae1463 fixed this error was removed.

image
theoolee commented 10 months ago

I see the code committed by b4a4698fa1c3c351e256369e387680d77fae1463 is still at the main branch, so there is a new bug caused by 196a3ef2413431c83f562211ff8a56bcf7ffda7c.

theoolee commented 10 months ago

Using $ref means the properties are not written inline.