Evgeny Poberezkin
c55ef280dc
feat: optionally fail validation of unknown format passed via $data, #310
2016-10-16 16:11:25 +01:00
Evgeny Poberezkin
01ff755d4b
test: whitelisted unknown formats should be valid (remove warnings), #310
2016-10-16 12:32:44 +01:00
Evgeny Poberezkin
9bd850d115
feat: optionally throw exception during schema compilation if unknown format is used, #310
2016-10-16 11:57:49 +01:00
Evgeny Poberezkin
0944949b08
test: option unknownFormats, #310
2016-10-16 11:32:12 +01:00
Evgeny Poberezkin
a3ab001d5b
fix: do NOT log warning if extendRef is explicitely set to true, fix schema path in messages; closes #303
2016-10-05 18:11:31 +01:00
Evgeny Poberezkin
1c28d6dc34
test: sourceCode option, #293
2016-09-06 21:49:01 +01:00
Evgeny Poberezkin
86114c56dd
style: no empty parens in constructor calls
2016-08-07 11:31:55 +01:00
Evgeny Poberezkin
3185847572
feat: log warning if other keywords are used with "$ref", #260
2016-08-06 21:10:57 +01:00
Evgeny Poberezkin
39b4a8f637
feat: option "extendRefs" to fail compilation or to ignore other keywords when "$ref" is used, closes #260
2016-08-06 13:05:39 +01:00
Evgeny Poberezkin
3011bff559
test: option "extendRefs", #260
2016-08-06 11:44:18 +01:00
Evgeny Poberezkin
b853218249
style: eslint tests, closes #250
2016-07-28 00:50:30 +01:00
Evgeny Poberezkin
6a14e347c4
use new with Ajv constructor in tests and examples
2016-06-04 21:16:11 +01:00
Matt Broadstone
84ef7ab728
feat(own-properties): support optionally checking own properties
...
Traditionally ajv validates additionalProperties by checking all
enumerable properties of an object. This patch allows the user to
specify that they only want own properties of an object to be
considered in this validation
2016-05-26 17:50:52 -04:00
Evgeny Poberezkin
cbd9467bd6
useDefaults: use literals (deep-clone) of defaults unless useDefaults: "shared" is passed, #151 , #136
2016-03-24 23:27:13 +00:00
Evgeny Poberezkin
ce86641657
pass default meta-schema via "meta" option, closes #90
2016-03-14 20:56:07 +00:00
Evgeny Poberezkin
d7bbf33478
bump version
2016-03-07 06:49:51 +00:00
Brian Stack
bf76acfc21
Make cloning optional and based on stringify
2016-03-03 11:23:49 -08:00
Brian Stack
4928b76605
Add failing test to reveal surprising behavior
2016-03-02 09:59:17 -08:00
Evgeny Poberezkin
f48efb564a
optimised "not" keyword in {allErrors: true} mode to fail on the first error in subschema, closes #131
2016-02-27 23:01:03 +00:00
Evgeny Poberezkin
8fa4d0f05f
test for passContext option
2016-02-16 10:12:32 +00:00
Evgeny Poberezkin
c99d6751ad
option addUsedSchema
2016-01-15 06:54:53 +00:00
Evgeny Poberezkin
8fe96db455
refactored "default" to correctly validate minProperties, minItems, etc. when defaults are present, closes #42
2016-01-09 13:28:40 +00:00
Evgeny Poberezkin
94a8f9abb3
useDefaults readme
2016-01-09 11:37:21 +00:00
Evgeny Poberezkin
d7dd660d25
"default" keyword in "items" subschemas, #42
2016-01-09 01:37:45 +00:00
Evgeny Poberezkin
0b725bbc31
"default" keyword in "properties" subschemas, #42
2016-01-09 01:07:33 +00:00
Evgeny Poberezkin
5f2cc30449
option multipleOfPrecision, closes #84
2016-01-02 17:16:01 +00:00
Evgeny Poberezkin
81d8a2ee6f
fixed the test that was failing in IE9
2015-12-27 22:42:02 +00:00
Evgeny Poberezkin
2eef59dede
minified browser bundle
2015-12-27 21:33:07 +00:00
Evgeny Poberezkin
10c6685027
support $data ref in formatMaximum/Minimum and exclusiveFormatMaximum/Minimum, #81
2015-12-24 17:43:48 +00:00
Evgeny Poberezkin
8648a98047
support $data ref in format keyword, #81
2015-12-22 01:18:52 +00:00
Evgeny Poberezkin
723258f052
v5 meta-schema
2015-12-12 21:18:41 +00:00
Evgeny Poberezkin
7c7abbbc74
"parentSchema" property added to error objects when using "verbose" option
2015-12-11 21:35:14 +00:00
Evgeny Poberezkin
7d96e1b642
patternGroups keyword (v5 proposals)
2015-11-28 14:59:08 +00:00
Evgeny Poberezkin
0fe807b68a
v5 keywords constant and contains
2015-11-22 00:31:01 +00:00
Evgeny Poberezkin
982264f192
removed i18n option (params always added to error objects)
2015-11-17 23:45:19 +00:00
Evgeny Poberezkin
7b142c56bd
optimized generated code for deep schemas
2015-10-25 21:55:07 +00:00
Evgeny Poberezkin
80dc982d59
replaced Array functions with for loop, added ajv instances to tests
2015-10-10 20:50:57 +01:00
Evgeny Poberezkin
f37eb7a1da
test for unicode option
2015-08-18 21:51:16 +01:00
Evgeny Poberezkin
8a4c6cdacb
test for uniqueItems option
2015-08-16 01:30:51 +01:00
Evgeny Poberezkin
fe53458a6e
missingRefs option tests
2015-08-15 23:59:14 +01:00
Evgeny Poberezkin
87cc09501b
tests: options, format regex
2015-08-12 01:00:46 +01:00
Evgeny Poberezkin
62adbbe1ed
fixed removeAdditional, tests, added "failing" for removeAdditional; closes #25 , related to #23
2015-07-31 19:23:35 +01:00
Evgeny Poberezkin
36085debf5
indentations
2015-07-30 09:06:31 +01:00
Evgeny Poberezkin
f88f1e20da
skipped test
2015-07-30 09:05:07 +01:00
Andy Scott
65ccf49edf
Add test for `removeAdditional` when using a schema to validate additional properties.
2015-07-29 14:28:57 -07:00
Andy Scott
94ddac2bc9
Add test for options (just `removeAdditional`, for now)
2015-07-29 09:56:11 -07:00