features/default.feature in jschematic-0.0.9 vs features/default.feature in jschematic-0.1.0

- old
+ new

@@ -65,7 +65,24 @@ } """ Then '{ "somethingElse": "foo" }' is not valid JSON But '{ "pi": 3.1415 }' is valid JSON + Scenario: does not fall back for boolean false + When the schema is: + """ + { + "properties": { + "enabled": { + "type": "boolean", + "required": true, + "default": "is delicious" + } + } + } + """ + Then '{ "enabled": false }' is valid JSON + But '{}' is not valid JSON + + Scenario: default for all types TODO: spec