Skip to content
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

Format error messages of validate nicer #81

Open
matentzn opened this issue Oct 27, 2021 · 1 comment
Open

Format error messages of validate nicer #81

matentzn opened this issue Oct 27, 2021 · 1 comment
Assignees

Comments

@matentzn
Copy link
Collaborator

Right now (dosdp-0.1.8.dev1) its a bit chatty and hard to read:

matentzn@mbp:~/ws/bio-attribute-ontology/src/ontology (odk-migration) $ dosdp validate -i ../patterns/dosdp-patterns/entity_attribute.yaml 
INFO:numexpr.utils:Note: NumExpr detected 16 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
INFO:numexpr.utils:NumExpr defaulting to 8 threads.
INFO:root:Checking /Users/matentzn/ws/bio-attribute-ontology/src/patterns/dosdp-patterns/entity_attribute.yaml
/Users/matentzn/opt/anaconda3/lib/python3.8/site-packages/dosdp/validator.py:30: UserWarning:deque(['additionalProperties']) => Additional properties are not allowed ('axioms' was unexpected) => []
/Users/matentzn/opt/anaconda3/lib/python3.8/site-packages/dosdp/validator.py:30: UserWarning:deque(['properties', 'annotations', 'items', 'oneOf']) => {'property': 'oio:hasExactSynonym', 'text': '%s of %s', 'vars': ['attribute', 'entity']} is not valid under any of the given schemas => [<ValidationError: "Additional properties are not allowed ('property' was unexpected)">, <ValidationError: "{'property': 'oio:hasExactSynonym', 'text': '%s of %s', 'vars': ['attribute', 'entity']} is not valid under any of the given schemas">, <ValidationError: "Additional properties are not allowed ('vars', 'text', 'property' were unexpected)">, <ValidationError: "'annotationProperty' is a required property">, <ValidationError: "'value' is a required property">, <ValidationError: "Additional properties are not allowed ('vars', 'text', 'property' were unexpected)">, <ValidationError: "'annotationProperty' is a required property">, <ValidationError: "'var' is a required property">]
INFO:root:Validation completed with issues to be fixed.
hkir-dev added a commit that referenced this issue Feb 25, 2022
@hkir-dev hkir-dev mentioned this issue Feb 25, 2022
@hkir-dev
Copy link
Collaborator

fixed: #84

@hkir-dev hkir-dev self-assigned this Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants