Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #323
Closed
Open
Issue created Jun 15, 2018 by Administrator@rootContributor

Error running python-flask server generated with openapi-generator-cli-3.0.0.jar.

Created by: fjd1234

I've generated python-flask SDK from petstore.yaml and hit the run time error summarized below. This worked fine with the swager-codegen and it seems "openapi" components is not found. It used to be "swagger". Maybe I'm missing some plugin or need a newer python? Any suggestions?

I've attached the complete backtrace.

Thanks Frank

Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/swagger_spec_validator/common.py", line 24, in wrapper return method(*args, **kwargs) File "/usr/lib/python3.5/site-packages/swagger_spec_validator/validator20.py", line 141, in validate_json cls=Draft4Validator, File "/usr/lib/python3.5/site-packages/swagger_spec_validator/ref_validators.py", line 53, in validate instance_cls(schema, *args, **kwargs).validate(instance) File "/usr/lib/python3.5/site-packages/jsonschema/validators.py", line 130, in validate raise error jsonschema.exceptions.ValidationError: 'components', 'openapi', 'servers' do not match any of the regexes: '^x-'

Suggest a fix/enhancement

petstore_flask.txt

Assignee
Assign to
Time tracking