-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
When validating TRAPI 1.6.0 PathFinder results, the validator appears to generate a schema validation error when it should not. Example repro:
https://arax.ncats.io/devED/?r=a3da1e04-4c7a-4db2-ac20-57f00e75807d
this UUID generates a schema-level error.
{
"critical": {
"critical.trapi.validation": {
"v1.6.0-beta": [
{
"component": "QueryGraph",
"json_path": "$",
"reason": "'edges' is a required property"
}
]
}
},
Message has a "query_graph" property:
query_graph:
description: >-
QueryGraph object that contains a serialization of a query in the
form of a graph
oneOf:
- $ref: '#/components/schemas/QueryGraph'
- $ref: '#/components/schemas/PathfinderQueryGraph'
nullable: true
that be either a traditional QueryGraph OR a PathfinderQueryGraph
While QueryGraph does require "edges", PathfinderQueryGraph does not have edges and requires "paths"
https://github.com/NCATSTranslator/ReasonerAPI/blob/8fed075cc5b0cec9e88a202e9fc16a14e34f158f/TranslatorReasonerAPI.yaml#L920
So the claim is that the above listed UUID is schema-valid TRAPI and should not be failing validation.
Why does it fail validation?
Can it be fixed?
Metadata
Metadata
Assignees
Labels
No labels