opened
tschaffter
Validate Tool
issue
created
tschaffter
@thomasyu888 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
'jsonschema>=3.2.0' is already in *setup.py*
comment
created
thomasyu888
Thanks for starting this @tschaffter .  I was actually going to rename `NlpClient` to `DataNodeClient` and then have a `NlpToolClient`.  Thoughts?
comment
created
thomasyu888
Depends on #42
comment
created
thomasyu888
@tschaffter, this can be merged
comment
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
This message directly preceded comment from bot *github-actions[bot]* by author *thomasyu888*:
@tschaffter, this can be merged
This message directly preceded comment from bot *github-actions[bot]* by author *thomasyu888*:
@tschaffter, this can be merged