This repository was archived by the owner on Dec 25, 2024. It is now read-only.
[BUG][python] Reference Error when using schema with optional properties #415
Labels
bug
Something isn't working
Bug Report Checklist
Description
When transforming the schema that have a additional properties, the created python file will have unresolved references in the TypedDict for the optional properties.
Given the yaml file below, the created
multi_properties_schema.py
file will have following definition for the optional properties:However, the
DataTupleInput
andDataTuple
can not be referenced which lead to an errorNameError: name 'DataTupleInput' is not defined
during runtime.openapi-json-schema-generator version
Version 4.1.2
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: