You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used to have an endpoint for this (when the front-end was generated server-side, and type checking sucked) #28 , but now I don't. Time to change this. See docs issue: atomicdata-dev/atomic-data-docs#110
How should validate-json-ad work? It takes one argument, a json-ad string, and returns an error if encountered. Parses it, checks datatypes, returns error. Should it also check every mentioned URL, every property, to see if they are still online? Seems a bit much. Maybe if I add it as an option, but that would not be necessary for the first version. I think the existing parse-json-ad stuff already does everything... So I guess all that I need to do is add the Endpoint and CLI option. Easy!
Add the validate functionality to atomic_lib. (not needed, we have parse!)
Add an Endpoint to atomic_server, that accepts a JSON-AD string (or URL) and returns a message.
Add a CLI command for validating JSON input (I think with a pipe command, not sure how to do this, but it's probably easy with clap, so I can do grep myfile.json-ad | atomic-cli validate).
The text was updated successfully, but these errors were encountered:
joepio
changed the title
JSON-AD Validate method
Validate JSON-AD (endpoint + CLI option)
Mar 17, 2022
I used to have an endpoint for this (when the front-end was generated server-side, and type checking sucked) #28 , but now I don't. Time to change this. See docs issue: atomicdata-dev/atomic-data-docs#110
How should
validate-json-ad
work? It takes one argument, a json-ad string, and returns an error if encountered. Parses it, checks datatypes, returns error. Should it also check every mentioned URL, every property, to see if they are still online? Seems a bit much. Maybe if I add it as an option, but that would not be necessary for the first version. I think the existingparse-json-ad
stuff already does everything... So I guess all that I need to do is add the Endpoint and CLI option. Easy!validate
functionality toatomic_lib
. (not needed, we haveparse
!)Endpoint
toatomic_server
, that accepts a JSON-AD string (or URL) and returns a message.clap
, so I can dogrep myfile.json-ad | atomic-cli validate
).The text was updated successfully, but these errors were encountered: