Skip to content

Conversation

@ikurovsky
Copy link

Motivation:
OpenAPI v2 supports setting default values for array parameters, but current v1 parser implementation fails to read such document as it always assumes the default value to be string.

Modification:
In case if parameter type is set to "array" then parse the default value as array.

Limitations:
The fix only allows parser to read such documents without errors while internally the default value is still represented as string. Changing that would require update of a much wider scope as it includes changes in both swagger-parser and swagger-models.

Fixes #387.

Copy link
Contributor

@gracekarina gracekarina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @ikurovsky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants