-
Notifications
You must be signed in to change notification settings - Fork 9
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
checklist issue for dpack-1 validation conditions #31
Comments
should there also by a version component to the validation? |
Just to clarify, i am not referring to |
This issue is for defining well-formed dpack-1 files, for versioning issues related to this particular javascript dpack library please open a separate issue |
@nmushegian ahh I was inferring from Can we separate out the schema from the current definition location to its own json schema file? we can use regex (patterns in json schema format) to validate + can be listed on https://www.schemastore.org/json/ Here is an example (note this is not actually a proper json schema file just quick example): https://github.com/sambacha/dpack/blob/93cc887459cd3d8dd5b3a63f8958531e19e3995d/spec/dpack-1.schema.json regex patterns for validation of |
To avoid confusion I think we might just remove schemas altogether and validate each possible error case directly, since a proper spec needs distinct error codes anyway I think I will use |
this sounds much better |
isValidType and isValidObject
isValidObject
isValidPack
types
objects
isValidPack
The text was updated successfully, but these errors were encountered: