-
|
Hey, I'm using geojson_pydantic for some fields in my openapi schema. Is it possible to tell datamodel-code-generator to I see the config option for additional imports, but it would be great to not generate those models also. |
Beta Was this translation helpful? Give feedback.
Answered by
koxudaxi
Jan 2, 2026
Replies: 1 comment
-
|
This is already possible using the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
markns
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is already possible using the
--type-overridesoption:--type-overrides '{ "Feature": "geojson_pydantic.Feature" }'will skip generating the Feature model and import it from geojson_pydantic instead. See PR #2893 for improved documentation.