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
Using AJV, the pattern instantiation can be validated against the pattern JSON schema.
Using Spectral, additional validations that cannot be checked by the schema can be applied.
The result would be a pass or fail.
On a failure, any issues will be output to the user.
Future Considerations
In future, it should also be possible to validate a pattern against a meta-schema
As part of this issue we decided that the meta schemas will be released with the cli and it won't be loaded in from the $schema property URL specified in the JSON Schema. The $schema property will be used as an ID and the URL does not need to point to a file according to the JSON Schema standards. This means that every calm version will always be compatible with the cli version that gets released with. @rocketstack-matt@jpgough-ms
Feature Request
Description of Problem:
A pattern instantiation should be able to be validated against a pattern JSON schema and spectral ruleset to ensure compliance with the pattern.
This relates to #53
Potential Solutions:
Using AJV, the pattern instantiation can be validated against the pattern JSON schema.
Using Spectral, additional validations that cannot be checked by the schema can be applied.
The result would be a pass or fail.
On a failure, any issues will be output to the user.
Future Considerations
In future, it should also be possible to validate a pattern against a meta-schema
Suggested commands:
calm validate --pattern [URL/file path] --instantiation [URL/file path]
calm validate -p [URL/file path] -i [URL/file path]
The text was updated successfully, but these errors were encountered: