-
Notifications
You must be signed in to change notification settings - Fork 3
Add optional input values and test suite #31
Conversation
Thanks. LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor doc correction
examples/test.py
Outdated
|
||
def test_folders(): | ||
base = path.dirname(path.abspath(__file__)) | ||
print base |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♂️
spec/readme.md
Outdated
@@ -150,6 +150,8 @@ Like the inputs, you can add JSON schema constraints as desired. Please specify | |||
|
|||
The example has named one config option, called "speed", which must be an integer between zero and three, and another called "coordinates", which must be a set of three floats. | |||
|
|||
In some cases, a configuration option may not have a safe default, and it only makes sense to sometimes omit it entirely. If that is the case, specify `"optional": "true"` on that config key. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"optional": true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Closes #25, #29. This feature was the breaking point for not having at least a basic validation suite, so that is added as well. Basic but functional. Comments welcome.
Is this a semantic or operational change? If so: