Skip to content

Commit

Permalink
Merge pull request #18 from PASTAplus/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
servilla authored Dec 29, 2020
2 parents e2cd658 + 4e72f35 commit faad525
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Binary file modified docs/eml_model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions docs/eml_model.puml
Original file line number Diff line number Diff line change
Expand Up @@ -75,31 +75,31 @@ class contact {
class individualName_contact {
name: 'individualName'
attributes: {}
contents: None
content: None
parent: creator
children: [surName_contact]
}

class surName_contact {
name: 'surName'
attributes: {}
contents: 'Gaucho'
content: 'Gaucho'
parent: individualName_contact
children: []
}

class individualName_creator {
name: 'individualName'
attributes: {}
contents: None
content: None
parent: creator
children: [surName_creator]
}

class surName_creator {
name: 'surName'
attributes: {}
contents: 'Gaucho'
content: 'Gaucho'
parent: individualName_creator
children: []
}
Expand Down
5 changes: 3 additions & 2 deletions src/metapype/eml/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ def node(node: Node, errs: list=None) -> None:
Args:
node: Node instance to be validated
errs: List container for validation errors (fail fast if None)
Returns:
None
Raises:
MetapypeRuleError: An unknown type of node for EML 2.1.1
MetapypeRuleError: An unknown type of node for EML
"""
if node.name not in rule.node_mappings:
msg = "Unknown node: {}".format(node.name)
msg = f"Unknown node rule type: {node.name}"
if errs is None:
raise MetapypeRuleError(msg)
else:
Expand Down

0 comments on commit faad525

Please sign in to comment.