Description
With the following configuration, the openapi-generator with python-experimental breaks
- openapi-generator-cli 5.4.0, installed via npm
- using python-experimental
- using the
OAI/OpenAPI-Specification/main/examples/v2.0/yaml/petstore.yaml
Switching to python (non-experimental) or other specs solved the problem.
openapi-generator version
5.4.0
Steps to reproduce
Google colab for reproduction: https://colab.research.google.com/drive/1z2KnELth4HfaK-36ntjr_7v9g65QF63W?usp=sharing
Fully self-contained substeps in Google colab:
# install openapi-generator-cli
!npminstall-g @openapitools/openapi-generator-cli
!openapi-generator-cliversion-managerset5.4.0# get the PetStore.yaml and generate it:
!wgethttps://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v2.0/yaml/petstore.yaml
!ls
!openapi-generator-cligenerate-ipetstore.yaml-gpython-experimental# Error:# first some
[main] WARNo.o.c.l.AbstractPythonCodegen-TypenullnothandledproperlyintoExampleValue# then finally ajava.lang.NullPointerException
Related issues/PRs
Suggest a fix
Description
With the following configuration, the openapi-generator with python-experimental breaks
OAI/OpenAPI-Specification/main/examples/v2.0/yaml/petstore.yamlSwitching to python (non-experimental) or other specs solved the problem.
openapi-generator version
5.4.0
Steps to reproduce
Google colab for reproduction: https://colab.research.google.com/drive/1z2KnELth4HfaK-36ntjr_7v9g65QF63W?usp=sharing
Fully self-contained substeps in Google colab:
Related issues/PRs
Suggest a fix