Skip to content

cc_snap: validate that assertions property values are strings#370

Merged
OddBloke merged 3 commits intocanonical:masterfrom
OddBloke:schema
May 21, 2020
Merged

cc_snap: validate that assertions property values are strings#370
OddBloke merged 3 commits intocanonical:masterfrom
OddBloke:schema

Conversation

@OddBloke
Copy link
Copy Markdown
Collaborator

And add an example of providing a list of assertions.

@blackboxsw blackboxsw self-assigned this May 19, 2020
Copy link
Copy Markdown
Collaborator

@blackboxsw blackboxsw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 and I think we can now drop
the comment at the top of cc_snap right?

# TODO schema for 'assertions' and 'commands' are too permissive at the moment. 
# Once python-jsonschema supports schema draft 6 add support for arbitrary      
# object keys with 'patternProperties' constraint to validate string values. 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants