You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@JLLeitschuh I think that's a limitation with Swagger Parser at the moment. A workaround is to define the reference within the same file for the time being.
Description
Generating a map type in swagger where
additionalProperties
references a file results in the resulting simplified swagger file being wrong:Result of the yaml generator
Result of the spring code generator
Swagger-codegen version
Latest master
Swagger declaration file content or url
./definitions/FabricController.yaml
./definitions/FabricControllerMap.yaml
./swagger.yaml
Command line used for generation
lang = "io.swagger.codegen.languages.SwaggerYamlGenerator"
Steps to reproduce
Try to create a map that makes reference to a type declared in a different file.
Related issues
Suggest a Fix
Whatever type resolution for
$ref
that happens onproperties
in objects needs to also happen inadditionalProperties
.The text was updated successfully, but these errors were encountered: