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
Is your feature request related to a problem? Please describe.
I wrote a valid JSON Schema with many properties
Some properties' pattern make use of look-ahead and look-behind, which are supported by JSON Schema specifications.
See: JSON Schema supported patterns
datamodel-code-generator generated the PydanticV2 models.
Describe the solution you'd like
PydanticV2 supports look-around, look-ahead and look-behind using Python as regex engine: pydantic/pydantic#7058 (comment)
I'd like to have a configuration parameter to use python-re as regex engine for Pydantic V2.
Describe alternatives you've considered
Workaround:
Is your feature request related to a problem? Please describe.
See: JSON Schema supported patterns
datamodel-code-generator
generated the PydanticV2 models.Describe the solution you'd like
PydanticV2 supports look-around, look-ahead and look-behind using Python as regex engine: pydantic/pydantic#7058 (comment)
I'd like to have a configuration parameter to use
python-re
as regex engine for Pydantic V2.Describe alternatives you've considered
Workaround:
datamodel-codegen --base-model "module.with.basemodel._BaseModel"
The text was updated successfully, but these errors were encountered: