Evgeny Poberezkin
b9a2a83354
docs: update beta version install command
2017-02-12 19:48:57 +00:00
Evgeny Poberezkin
388053806b
docs: update link to beta version docs
2017-02-12 19:45:29 +00:00
Evgeny Poberezkin
9287ca5789
version 4.11.3
2017-02-12 19:16:59 +00:00
Evgeny Poberezkin
8413890875
fix: schema "dependencies" with property containing single quotes, closes #413
2017-02-12 00:21:53 +00:00
Evgeny Poberezkin
af458d3460
Merge pull request #412 from delavara/patch-1
...
Update CUSTOM.md
2017-02-09 20:28:05 +00:00
Cody De La Vara
9432451a84
Update CUSTOM.md
...
Minor typo in the `custom` validate keyword example.
2017-02-09 12:04:26 -05:00
Evgeny Poberezkin
553aae8097
Merge pull request #405 from ahmedsoliman92/patch-1
...
typo
2017-01-30 21:32:29 +00:00
Ahmed Soliman
b587913c97
typo
2017-01-30 17:15:53 +02:00
Evgeny Poberezkin
ccc9907d26
feat: allow setting dataPath in validate/compile keywords, closes #331
2017-01-21 19:44:08 +00:00
Evgeny Poberezkin
cf39a53404
docs: update beta version
2017-01-21 00:31:34 +00:00
Evgeny Poberezkin
9e1c8d7576
chore: version 4.11.0
2017-01-20 23:53:44 +00:00
Evgeny Poberezkin
7148ae3607
docs: update typings for "modifying" and "valid" custom keywords, #392 , #393
2017-01-20 23:25:45 +00:00
Evgeny Poberezkin
dc265ddf4a
docs: custom keywords with pre-defined validation result, closes #393
2017-01-20 23:21:03 +00:00
Evgeny Poberezkin
aa8de572df
feat: custom keywords with predefined validation result, #393
2017-01-20 23:08:52 +00:00
Evgeny Poberezkin
d314df2721
docs: modifying option in custom keyword definition, closes #392
2017-01-20 22:16:11 +00:00
Evgeny Poberezkin
33845cc397
feat: support custom keywords that modify data, #392
2017-01-20 22:03:36 +00:00
Evgeny Poberezkin
2468bd5014
refactor: custom keyword code generation, #392
2017-01-20 21:33:34 +00:00
Evgeny Poberezkin
82002ec5e8
test: failing test for custom keyword mutating data, #141 , #392
2017-01-20 20:26:14 +00:00
Evgeny Poberezkin
ac5e2cee55
docs: reference to 5.0.1-beta docs
2017-01-20 20:14:36 +00:00
Evgeny Poberezkin
b4ecf27fb2
version 4.10.4
2017-01-05 18:46:14 +00:00
Evgeny Poberezkin
41aeb848f2
Merge pull request #391 from farrago/non-identifier-keywords
...
Allow custom keywords that are not valid JS identifiers (fixes issue #389 )
2017-01-05 18:43:26 +00:00
Richard Taylor
b1b0c553d8
Improve implementation of allowing hyphens in keywords
...
This:
- Updates the README with the new rules (and recommendations)
- Updates `keyword.js` to implement the agreed change to the naming rules:
- - Now same as before but also allow hyphens as second and subsequent characters
- Update tests to test the new keyword naming rules
- Update `definitions.def` to use it.util.getProperty() to dynamically choose dot
or bracket notation as appropriate rather than hardcode bracket notation.
Test Plan:
- Run `npm test` and ensure all tests run and pass
2017-01-05 18:28:28 +00:00
Richard Taylor
66db560ca5
Allow custom keywords that are not valid JS identifiers
...
Custom keywords were required to be valid JS identifiers due to the
way they were being used in the generated code. This prevented the use
of keywords with the `x-` prefix that is required by [swagger](http://swagger.io ].
This change fixes that by updating the only place that was using them
directly as an identifier to use //brackets// notation rather than
//dot// notation. This brings the definition of `$schemaPath` in
`definitions.def` in line with the way the rule definition is accessed
from `RULES.custom` at the top of `custom.jst`.
The validation of the keyword name has been changed to allow any name
in this change, but this should be updated to either just remove the
test or update it to a new rule before this change is included in
the project.
Finally, this also updates a number of the tests in `custom.spec.js` to
use non-valid identifiers for the names of some of the custom keywords
being tested (primarily by adding `x-` to the front of the name).
Test Plan:
- Run `npm test` and ensure all tests run and pass
2017-01-05 10:48:12 +00:00
Evgeny Poberezkin
7613986c29
docs: about version 5.0.1-beta
2016-12-31 01:33:16 +00:00
Evgeny Poberezkin
c4335abf53
fix: allOf with empty schemas failing compilation, fixes #381
2016-12-24 23:42:36 +00:00
Evgeny Poberezkin
17de8aba47
fix: error macro
2016-12-24 02:23:12 +00:00
Evgeny Poberezkin
c02a3bdc48
refactor: clean up keyword templates
2016-12-23 22:02:41 +00:00
Evgeny Poberezkin
3f61cf73a6
refactor: remove built files before building
2016-12-23 19:28:26 +00:00
Evgeny Poberezkin
23f2572d1c
fix: formats json-pointer and relative-json-pointer now support empty fragments
2016-12-23 17:34:25 +00:00
Evgeny Poberezkin
8a470f32df
docs: getKeyword, removeKeywords methods
2016-12-11 12:38:13 +00:00
Evgeny Poberezkin
7bfc868816
test: getKeyword, removeKeyword methods
2016-12-11 12:12:27 +00:00
Evgeny Poberezkin
506370804a
feat: get and remove custom keywords from the Ajv instance, related to #371
2016-12-11 11:17:37 +00:00
Evgeny Poberezkin
fe18ed52f8
feat: parameters of compile-dots script, include it in npm package
2016-12-10 20:29:56 +00:00
Evgeny Poberezkin
8d72433ff3
version 4.9.2
2016-12-06 21:37:25 +00:00
Evgeny Poberezkin
39cbed4d74
Merge branch 'ValeryVS-fix/webpack-optional-import'
2016-12-06 21:35:36 +00:00
Evgeny Poberezkin
5081be2720
refactor: make variable for package names local, closes #325 , #117
2016-12-06 21:29:02 +00:00
Minchenko Valery
06fdf7175e
Store require paths for optional dependencies in variables
...
remove warnings about missing dpendencies for webpack
2016-12-06 16:44:11 +03:00
Evgeny Poberezkin
653a4e06e6
docs: badge
2016-12-03 21:39:17 +00:00
Evgeny Poberezkin
3e666bc250
test: fix typo in file name
2016-12-03 19:26:30 +00:00
Evgeny Poberezkin
1c3762c0e8
fix: remove duplicated return from generated code, correct error message
2016-12-02 17:48:56 +00:00
Evgeny Poberezkin
7e88030c7e
Merge pull request #361 from epoberezkin/greenkeeper-regenerator-0.9.5
...
Update regenerator to version 0.9.5 🚀
2016-12-01 20:28:34 +00:00
greenkeeperio-bot
df7f0d4ea9
chore(package): update regenerator to version 0.9.5
...
https://greenkeeper.io/
2016-12-01 15:46:51 +00:00
Evgeny Poberezkin
4f54dcfd8b
docs: note about installing 5.0.0
2016-11-30 22:24:32 +00:00
Evgeny Poberezkin
dbafe1cfff
Merge pull request #345 from epoberezkin/greenkeeper-nyc-10.0.0
...
Update nyc to version 10.0.0 🚀
2016-11-30 22:05:13 +00:00
Evgeny Poberezkin
a505bc6d76
Merge pull request #328 from epoberezkin/greenkeeper-karma-sauce-launcher-1.1.0
...
Update karma-sauce-launcher to version 1.1.0 🚀
2016-11-30 21:28:10 +00:00
greenkeeperio-bot
720a31f6e7
chore(package): update nyc to version 10.0.0
...
https://greenkeeper.io/
2016-11-22 17:05:21 +00:00
Evgeny Poberezkin
c6127ee835
Merge pull request #343 from epoberezkin/fix-equal
...
fix: compare Date and RegExp objects, closes #342
2016-11-14 20:49:24 +00:00
Evgeny Poberezkin
00bf5c77ee
fix: compare Date and RegExp objects, closes #342
2016-11-14 18:27:40 +00:00
greenkeeperio-bot
3f7b83f84f
chore(package): update karma-sauce-launcher to version 1.1.0
...
https://greenkeeper.io/
2016-10-24 09:48:17 +01:00
Evgeny Poberezkin
a0e647e5f0
docs: linebreak
2016-10-20 22:21:28 +01:00