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
This generates an error at import time when building the model
Traceback (most recent call last):
File "/home/eltoder/dev/scratch/xml_plain_validator.py", line 13, in <module>
class Model(pxml.BaseXmlModel):
File "/home/eltoder/dev/scratch/.venv/lib/python3.10/site-packages/pydantic_xml/model.py", line 375, in __new__
cls.__build_serializer__()
File "/home/eltoder/dev/scratch/.venv/lib/python3.10/site-packages/pydantic_xml/model.py", line 461, in __build_serializer__
serializer = Serializer.parse_core_schema(
File "/home/eltoder/dev/scratch/.venv/lib/python3.10/site-packages/pydantic_xml/serializers/serializer.py", line 184, in parse_core_schema
return cls.select_serializer(schema, ctx)
File "/home/eltoder/dev/scratch/.venv/lib/python3.10/site-packages/pydantic_xml/serializers/serializer.py", line 241, in select_serializer
return factories.model.from_core_schema(schema, ctx)
File "/home/eltoder/dev/scratch/.venv/lib/python3.10/site-packages/pydantic_xml/serializers/factories/model.py", line 453, in from_core_schema
return ModelSerializer.from_core_schema(schema, ctx)
File "/home/eltoder/dev/scratch/.venv/lib/python3.10/site-packages/pydantic_xml/serializers/factories/model.py", line 91, in from_core_schema
fields_serializers[field_name] = Serializer.parse_core_schema(model_field['schema'], field_ctx)
File "/home/eltoder/dev/scratch/.venv/lib/python3.10/site-packages/pydantic_xml/serializers/serializer.py", line 183, in parse_core_schema
schema, ctx = cls.preprocess_schema(schema, ctx)
File "/home/eltoder/dev/scratch/.venv/lib/python3.10/site-packages/pydantic_xml/serializers/serializer.py", line 198, in preprocess_schema
inner_schema = schema['schema']
KeyError: 'schema'
The text was updated successfully, but these errors were encountered:
pydantic_xml seems to have an issue with PlainValidator:
This generates an error at import time when building the model
The text was updated successfully, but these errors were encountered: