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-'