Skip to content

Conversation

@valdemon
Copy link
Contributor

@valdemon valdemon commented Apr 3, 2015

Hi,

This addresses eg. the #982 and #987 and likely some others around the subject.
Except of the multi-line text area for the array type params, I've also got a rid of the 'required' and 'default' attributes of the array type parameters.

Please check the use cases here: https://swagger-test-valdemon.c9.io
The above sample UC additionally cover aspects of required parameters and/or default values in a context of the array type.

The validation error (shown in Swagger UI bottom right) is related to declaring the default value as array for the array type parameter, which doesn't sound like wrong I'd say, according to: http://json-schema.org/latest/json-schema-validation.html#anchor101.
Checking the sample 'swagger.json' against any JSON schema validator succeeds btw.

Best,
Waldek

…extarea.

Improved required parameter handling for the array type.
Improved default value handling for the array type.
@webron
Copy link
Contributor

webron commented Apr 6, 2015

@valdemon - thank you for the PR, but all PRs should be submitted against the develop_2.0 branch.

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