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
Thanks for reporting this issue! swagger-parser parses the enum default value differently depending on whether it's in a referenced file or not. Which seems strange to me. I opened a bug about this at swagger-api/swagger-parser#1958.
Bug Report Checklist
Description
Default value tags for arrays have square braces(
[]
) surrounded on them, which would fail because of invalid enum values.Initial state:
openapi.yaml
file.yaml
Command Run:
Actual output:
Expected Output:
Actual output makes spring think that
[DOG
andFISH]
are the provided enums and would fail the request processing.openapi-generator version
Debug info
This bug would not occur if the paths are in the main
openapi.yaml
file instead of being referenced from thefile.yaml
The text was updated successfully, but these errors were encountered: