opened
tschaffter
username_0
Validate Tool
issue
created
tschaffter
username_0
@username_1 I've added a snippet of commented code that uses `jsonschema` package to validate a JSON object against a JSON schema. When testing a tool, we want to client to get the JSON object by sending a request to the Tool instead of reading JSON data from file. The snippet comes from this script that I used in our schemas repository to validate schemas: https://github.com/Sage-Bionetworks/nlp-sandbox-schemas/blob/develop/tools/validate/validate.py
comment
created
tschaffter
username_0
'jsonschema>=3.2.0' is already in *setup.py*
comment
created
thomasyu888
username_1
Thanks for starting this @username_0 .  I was actually going to rename `NlpClient` to `DataNodeClient` and then have a `NlpToolClient`.  Thoughts?
comment
created
thomasyu888
username_1
Depends on #42
comment
created
thomasyu888
username_1
@username_0, this can be merged
comment