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
Validation rules are not added for lists (maxItems/minItems values) to the generated Python SDK (I tested only for Python).
I also tried to add validation rules for string, number and integer. It's ok.
4.3.1 (additionaly checked on latest 5.0.0-beta)
requestBody: content: application/json: schema: type: object properties: os: type: object required: - name - version properties: name: type: string version: type: string packages: type: array minItems: 1 maxItems: 5 items: type: string
java -jar openapi-generator-cli-4.3.1.jar generate -i v1.yaml -g python -o ~/projects/sdk-openapi
Just use generator script with default options for python.
Not found.
The text was updated successfully, but these errors were encountered:
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
Sorry, something went wrong.
This ticket is stale and should be fixed in master. maxItems and minItems validations are checked here: https://github.com/OpenAPITools/openapi-generator/blob/master/samples/openapi3/client/petstore/python/petstore_api/model_utils.py#L777-L797
No branches or pull requests
Bug Report Checklist
Description
Validation rules are not added for lists (maxItems/minItems values) to the generated Python SDK (I tested only for Python).
I also tried to add validation rules for string, number and integer. It's ok.
openapi-generator version
4.3.1 (additionaly checked on latest 5.0.0-beta)
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Just use generator script with default options for python.
Related issues/PRs
Not found.
The text was updated successfully, but these errors were encountered: