take a look at this https://github.com/dandi/pydantic2linkml/issues/68 and…
Jump to turn (13)
- 1take a look at this https://github.com/dandi/pydantic2linkml/issues/68 and https
- 2Since this is a translation for a jsonschemaextra={"readOnly": True} in the defi
- 3What about """ Managed exclusively by the owning authority; attempts by another
- 4Do you think using a match statement in implementing the solution is better?
- 5sure
- 6READONLYTEXT is defined as a class attribute. It seems that you can refer to it
- 7I don't know why the match statement has to be indented inside if not self.field
- 8that's reasonable. However, why don't you update the documentation, particularly
- 9Ok. Let's commit and get ready the submit a PR. All changges have been added. By
- 10sure
- 11/exit exit
- 12The supervisor of the project prefer a shorter string to be used for the value o
- 13let's proceed (push to my fork first)
- User
take a look at this https://github.com/dandi/pydantic2linkml/issues/68 and https://github.com/linkml/linkml/issues/3528 for context
What I want now is to actually implement a partical solution in
pydantic2linkmlso that it can produce slots with meta slotreadonlyin the generated LinkML schema.The slot definitons or
slot_usageentries that I want to have thereadonlymeta slot entry correspond to the Pydantic fields that have thejson_schema_extraparameter defined as a dictionary which contains the key-value pair"readOnly": True. (There are many examples of these Pydantic fields indandischema.modelswhich is available in a hatch managed Python env.) Assistant