You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm still having problems with the nullable reference. I've used the anyOf trick which passes the specification validation, but fails at runtime because the models.any_of_tier module is not generated.
ModuleNotFoundError: No module named '<my_package>.openapi_server.models.any_of_tier'
Bug Report Checklist
Description
I'm still having problems with the nullable reference. I've used the anyOf trick which passes the specification validation, but fails at runtime because the models.any_of_tier module is not generated.
ModuleNotFoundError: No module named '<my_package>.openapi_server.models.any_of_tier'
openapi-generator version
I just pulled the latest docker image.
OpenAPI declaration file content or url
(for YAML code) or
Command line used for generation
docker run --rm -v ${BUILD_DIR}:/local openapitools/openapi-generator-cli generate
-i local/${ENDPOINT_SPEC}
-g python-flask
-o /local
Steps to reproduce
submit a request with tier: null
Related issues/PRs
OAI/OpenAPI-Specification#1368
Suggest a fix
I've also tried:
alllOf and get
validation error: None is not of type 'object'
which makes sense because tier doesn't exist.
oneOf generates the same error as anyOf.
models.one_of_tier
ModuleNotFoundError: No module named '<my_package>.openapi_server.models.one_of_tier'
The text was updated successfully, but these errors were encountered: