-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create canvas from IIIF Image #89
Conversation
So I'm hitting a brick wall here with a v2 Image API. I can't find a way to get the value of
It also seems to have lost the id and type:
The ServiceItem1 is defined in skeleton as:
|
I think it's probably to do with this: https://pydantic-docs.helpmanual.io/usage/models/#automatically-excluded-attributes
|
Found some sort of solution by changing |
It looks like pydantic 1.10 has changed the value of: copy_on_model_validation from a boolean to a string of options:
|
It was a breaking change (temporarily) but was then reverted (see notes on https://github.com/pydantic/pydantic/releases/tag/v1.9.2) and made so that both the existing This was the impetus behind my version pinning of the requirements, as I noticed the deprecation warnings coming from Tox, but when I switched locally all the code broke, because my version of Pydantic was still 1.9.1. We could change the code to use |
Reported issue with @id and @type here: koxudaxi/datamodel-code-generator#917 |
I think this could be the issue:
Where:
|
I'd think you're probably right. Might be an easy patch here: https://github.com/koxudaxi/datamodel-code-generator/blob/6926c4fc5f57c0670a62c9c083a24a29117f0099/datamodel_code_generator/reference.py#L157-L158 changing the conditional from For now I am happy to make the manual adjustment to |
Closes #10