-
Notifications
You must be signed in to change notification settings - Fork 38
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
Provide JSON Schema definitions of the WES data model #135
Comments
@susheel - what's the benefit of storing this separately from the I'd be a little worried about the two documents potentially getting out of sync. |
It is mainly to allow a non-swagger client to still validate the JSON response without processing the swagger spec to extract the JSON schema. I am planning to raise this as a separate proposal but just wanted to give you the context of where I'm going with this. Long-term I see the need to embed the schema version into the JSON response to allow a client to validate and process cross-service JSON responses. Example below: {
"@context": "http://ga4gh.cloud/wes/v1",
"id": "..."
...
}
This is especially needed when we get a TRS v1 response to be sent to a WES service that can process both TRS v1 and v2 JSON data. Ditto for WES <--> TES and/or DRS. I strongly feel this is better than relying on the current suggestion of using baseURL versions |
@susheel how does this relate to ga4gh/data-repository-service-schemas#264 ? Also, can you just generate this JSON as part of the documentation build system? |
Thanks, @susheel! I like this vision, though would like to see it as part of the build process (the JSON file doesn't need to be under version control — but we can certainly handle the Swagger processing to save clients the trouble). I'd be OK merging your PR for now and dealing with the build/deploy/hosting updates in a separate ticket. @briandoconnor — I do think this relates to what the Discovery WS is trying to enable, but not sure exactly how it fits with |
@briandoconnor @jaeddy Yes, I believe this can be generated from the build process. I use https://github.com/instrumenta/openapi2jsonschema |
I'll merge |
Related: ga4gh/TASC#43 |
Provide JSON Schema definitions to help WES clients validate WES request/responses.
The text was updated successfully, but these errors were encountered: