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
Describe the bug
When we use schema $def tag and define the subschemas separately if the first field in the object has a const value, the value is not detected but the object's name appears in the literal of the generated code.
To Reproduce
Create a schema such as given below.
Then generate the pydantic_v2 model using a command as follows
Describe the bug
When we use schema $def tag and define the subschemas separately if the first field in the object has a const value, the value is not detected but the object's name appears in the literal of the generated code.
To Reproduce
Create a schema such as given below.
Then generate the pydantic_v2 model using a command as follows
Example schema:
Used command line:
Expected behaviour
Expected
What I got
The text was updated successfully, but these errors were encountered: