We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I seems the issue is inherited from flask-restplus noirbizarre/flask-restplus#488
In Argument from regparse.py:
@property def __schema__(self): if self.location == 'cookie': return param = { 'name': self.name, 'in': LOCATIONS.get(self.location, 'query') } _handle_arg_type(self, param) if self.required: param['required'] = True if self.help: param['description'] = self.help if self.default is not None: param['default'] = self.default() if callable(self.default) else self.default if self.action == 'append': param['items'] = {'type': param['type']} param['type'] = 'array' param['collectionFormat'] = 'multi' if self.action == 'split': param['items'] = {'type': param['type']} param['type'] = 'array' param['collectionFormat'] = 'csv' if self.choices: param['enum'] = self.choices param['collectionFormat'] = 'multi' return param
An argument with choices must not generate a collectionFormat field
choices
collectionFormat
The text was updated successfully, but these errors were encountered:
Merge pull request #165 from leopold-p/fix_choices_schema
a28f9c1
Fix Issue #164: generate choices schema without collectionFormat
No branches or pull requests
I seems the issue is inherited from flask-restplus
noirbizarre/flask-restplus#488
Code
In Argument from regparse.py:
An argument with
choices
must not generate acollectionFormat
fieldThe text was updated successfully, but these errors were encountered: