Skip to content

Commit

Permalink
regen with latest
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Mar 16, 2023
1 parent 687ce81 commit b74f849
Show file tree
Hide file tree
Showing 5 changed files with 1,133 additions and 1,131 deletions.
2 changes: 1 addition & 1 deletion linkml_model/jsonld/meta.context.jsonld
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"comments": {
"description": "Auto generated by LinkML jsonld context generator",
"generation_date": "2023-03-15T19:39:54",
"generation_date": "2023-03-16T10:58:06",
"source": "meta.yaml"
},
"@context": {
Expand Down
6 changes: 4 additions & 2 deletions linkml_model/meta.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Auto generated from meta.yaml by pythongen.py version: 0.9.0
# Generation date: 2023-03-15T19:40:24
# Generation date: 2023-03-16T10:58:36
# Schema: meta
#
# id: https://w3id.org/linkml/meta
Expand Down Expand Up @@ -479,7 +479,7 @@ class SchemaDefinition(Element):
prefixes: Optional[Union[Dict[Union[str, PrefixPrefixPrefix], Union[dict, "Prefix"]], List[Union[dict, "Prefix"]]]] = empty_dict()
emit_prefixes: Optional[Union[Union[str, NCName], List[Union[str, NCName]]]] = empty_list()
default_curi_maps: Optional[Union[str, List[str]]] = empty_list()
default_prefix: Optional[str] = "linkml"
default_prefix: Optional[str] = None
default_range: Optional[Union[str, TypeDefinitionName]] = None
subsets: Optional[Union[Dict[Union[str, SubsetDefinitionName], Union[dict, "SubsetDefinition"]], List[Union[dict, "SubsetDefinition"]]]] = empty_dict()
types: Optional[Union[Dict[Union[str, TypeDefinitionName], Union[dict, "TypeDefinition"]], List[Union[dict, "TypeDefinition"]]]] = empty_dict()
Expand All @@ -497,6 +497,8 @@ class SchemaDefinition(Element):
keywords: Optional[Union[str, List[str]]] = empty_list()

def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self.default_prefix is None:
self.default_prefix = sfx(str(self.id))
if self._is_empty(self.name):
self.MissingRequiredField("name")
if not isinstance(self.name, SchemaDefinitionName):
Expand Down
Loading

0 comments on commit b74f849

Please sign in to comment.