lexiq-legal / pydantic_schemaorg

Schema.org classes in pydantic
MIT License
58 stars 17 forks source link

Some types get parsed to typing.Any #2

Closed m-alek closed 2 years ago

m-alek commented 2 years ago

Description Each schema.org object has expected types for its properties.

Problem It seems not all expected types get parsed properly. E.g. https://schema.org/Person, or <https://schema.org/Place get parsed to type 'typing.Any'

e.g. the property https://schema.org/maintainer of https://schema.org/CreativeWork should allow both Organization and Person, however it got parsed to Organization and typing.Any (see https://github.com/lexiq-legal/pydantic_schemaorg/blob/main/pydantic_schemaorg/CreativeWork.py#L74)

crbaker89 commented 2 years ago

Thanks for the bug report, should be fixed now!