Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to convert collectionFormat list items so that they validate correctly. #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jamidon
Copy link
Contributor

@jamidon jamidon commented Sep 5, 2020

Convert collectionFormat lists to the specified type so that jsonschema validates correctly. For example, a parameter type such as this:

idcsv: {name: ids, description: 'list of IDs', in: query, type: array, items: {type: number, format: int32}, collectionFormat: csv, minItems: 1}

The existing code simply returns a list of strings, however, jsonschema won't validate correctly unless the items are first converted to integers.

@jamidon
Copy link
Contributor Author

jamidon commented Jan 5, 2021

Unless I'm missing something, this P/R has not been merged. Does anyone have feedback that will let me know what else is needed or if what I am proposing is unacceptable in some way?

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.

1 participant