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

Errors from AmPath topology validation #86

Open
sajith opened this issue Mar 29, 2023 · 0 comments
Open

Errors from AmPath topology validation #86

sajith opened this issue Mar 29, 2023 · 0 comments
Assignees

Comments

@sajith
Copy link
Member

sajith commented Mar 29, 2023

Similar to #85, came across this too while working on #62:

>>> from sdx.datamodel.parsing.topologyhandler import TopologyHandler
>>> from sdx.datamodel.validation.topologyvalidator import TopologyValidator
>>> topology = TopologyHandler().import_topology("tests/data/ampath.json")
>>> validator = TopologyValidator()
>>> validator.set_topology(topology)
>>> validator.is_valid()
Global Institution must be in Topology urn:sdx:topology:
Location location Address must exist
Link urn:sdx:link::Ampath5/177_JAX/249 Port {'id': 'urn:sdx:port::Ampath5:177'} should be a string or a dict. Not dict
Link urn:sdx:link::Ampath5/177_JAX/249 Port {'id': 'urn:sdx:port::JAX:249'} should be a string or a dict. Not dict
False

Unsure if this is because of wrong assumptions or wrong input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant