We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Idea: A script should only update fields that are hidden or readOnly, otherwise user edits get lost.
Implementation
code-generator https://github.com/koxudaxi/datamodel-code-generator?tab=readme-ov-file#all-command-options with --field-include-all-keys at this location
--field-include-all-keys
osw-python/src/osw/core.py
Lines 402 to 416 in 13c7af3
uuid: UUID = Field(default_factory=uuid4, options={"hidden": True}, title="UUID")
model.Entity.__fields__["uuid"].field_info.extra["options"]["hidden"]
Override of __setattribute__ (s. a. https://github.com/OO-LD/oold-python/blob/74e4f4c417184d45bc3d8bad7bb98a91cad25061/src/oold/drafts/magic_field.py#L35) could check if the field is readOnly or hidden and allow writes only in this case
__setattribute__
The text was updated successfully, but these errors were encountered:
LukasGold
simontaurus
No branches or pull requests
Idea: A script should only update fields that are hidden or readOnly, otherwise user edits get lost.
Implementation
code-generator https://github.com/koxudaxi/datamodel-code-generator?tab=readme-ov-file#all-command-options with
--field-include-all-keys
at this location
osw-python/src/osw/core.py
Lines 402 to 416 in 13c7af3
uuid: UUID = Field(default_factory=uuid4, options={"hidden": True}, title="UUID")
accessable through
model.Entity.__fields__["uuid"].field_info.extra["options"]["hidden"]
Override of
__setattribute__
(s. a. https://github.com/OO-LD/oold-python/blob/74e4f4c417184d45bc3d8bad7bb98a91cad25061/src/oold/drafts/magic_field.py#L35)could check if the field is readOnly or hidden and allow writes only in this case
The text was updated successfully, but these errors were encountered: