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
Currently, yamlbot will only validate that the datatype of a value is allowed for a specific key.
language: some_language
The current behavior of yamlbot is to check that some_language is of type string.
It would be ideal to be able to validate that specific values for different keys are correct.
Building upon the previous example.
language: some_language
This new behavior should check that some_language is a valid value by checking it against a list of approved languages. If the language is not in the list, consider it a violation and print out a message listing the approved values. This new behavior could possibly be triggered by using a new key specific_values, as opposed to the accepted_types key.
The text was updated successfully, but these errors were encountered:
Previous behavior only allowed yamlbot to validate key values
as a specific data type. This change will allow users to specify
a list of specific values to validate a key against.
Resolves: issue #14
Currently,
yamlbot
will only validate that the datatype of a value is allowed for a specific key.The current behavior of
yamlbot
is to check thatsome_language
is of type string.It would be ideal to be able to validate that specific values for different keys are correct.
Building upon the previous example.
This new behavior should check that
some_language
is a valid value by checking it against a list of approved languages. If the language is not in the list, consider it a violation and print out a message listing the approved values. This new behavior could possibly be triggered by using a new keyspecific_values
, as opposed to theaccepted_types
key.The text was updated successfully, but these errors were encountered: