Open robcxyz opened 10 months ago
Upgrade to pydantic version 2.0
Proposal Status: implemented
Issue Number: 253
Proposal Doc: pydantic-2-upgrade.md
Custom Field
Need to create new Field object poc
Added fields
arg_num
render_by_default
visible
hidden
Could also strongly type the field which would be very helpful.
This should not work but it does. Should have error as the bar: baz is discarded
bar: baz
New Config
Replace __fields__
__fields__
Schema<-: foo: type: str default: bar bar: baz success->: Schema
create_model
ModelMetaclass
ConfigError
smart_union
Pydantic 2.0 Upgrade
Upgrade to pydantic version 2.0
Proposal Status: implemented
Issue Number: 253
Proposal Doc: pydantic-2-upgrade.md
Overview
Custom Field
Need to create new Field object poc
Added fields
arg_num
render_by_default
visible
hidden
Could also strongly type the field which would be very helpful.
This should not work but it does. Should have error as the
bar: baz
is discardedNew Config
Replace
__fields__
create_model
ModelMetaclass
ConfigError
smart_union