-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
changeSuggested alteration to Pydantic, not a new feature nor a bugSuggested alteration to Pydantic, not a new feature nor a bugfeedback wantedhelp wantedPull Request welcomePull Request welcometopic-json schemaRelated to JSON SchemaRelated to JSON Schema
Milestone
Description
Currently we have the class Schema for when you need to define more stuff on a field than just the type and default.
But this is a confusing name since not all it's arguments refer to the schema. It'll get more confusing if we want to add more arguments to Schema/Field, eg. a more complex alias system #477.
Therefore we should rename it to Field.
This would require:
- renaming the current
Fieldclass, perhaps renaming the entirefields.pymodule. Schemaneeds to carry on working for a while but with a deprecation warning
What does everyone thing?
@tiangolo Schema was your work originally, are you ok with this?
jasonkuhrt, jaheba, dgasmith, Bobronium and mithrandir4859
Metadata
Metadata
Assignees
Labels
changeSuggested alteration to Pydantic, not a new feature nor a bugSuggested alteration to Pydantic, not a new feature nor a bugfeedback wantedhelp wantedPull Request welcomePull Request welcometopic-json schemaRelated to JSON SchemaRelated to JSON Schema