Commit Graph

45 Commits (80d249ac7fc92c125d2217f53e29b6e24f3566c1)

Author SHA1 Message Date
Stan Goldmann 15e8d62b86 Replace `Thenable` with official `PromiseLike` declaration 2018-03-05 12:36:28 +01:00
Dmitriy 74bb715725
Added 'auto' into schemaId type definition #668 2018-01-29 15:22:57 +03:00
Evgeny Poberezkin cdc9992bb2 Merge branch 'master' into beta 2017-12-24 14:29:10 +00:00
Vohmyanin Sergey Vasilevich 88b3018b1a
replace Object to object due (Object=any), add CompilationContext interface 2017-12-08 21:22:45 +03:00
Evgeny Poberezkin e9dc9cb323 docs: type for "if" keyword error params 2017-11-26 10:32:41 +00:00
Evgeny Poberezkin e15f543dbd refactor: remove patternGroups keyword, #614 2017-11-26 10:11:55 +00:00
Philipp Thuerwaechter c9a6f995a9 Add method chaining to all add* and remove* methods
According to issue #625 this enables crazy things like
`new Ajv().addSchema(mySchema).validate(schema, data)`
2017-11-22 08:37:42 +01:00
Evgeny Poberezkin 75c95950a2 refactor: use fast-json-stable-stringify, closes #569, closes #579 2017-10-24 18:52:13 +01:00
Vohmyanin Sergey Vasilevich afae68a189
fix typings from #592, fixes #603 2017-10-24 12:47:13 +03:00
Evgeny Poberezkin 28386786fd fix: type definition for Ajv, closes #568 2017-10-15 19:06:10 +01:00
Evgeny Poberezkin b6d35aad14 fix: type definition for ValidateFunction, closes #584 2017-10-15 18:30:12 +01:00
Evgeny Poberezkin 3db9656a8f fix: type definition for FormatValidator, closes #570 2017-10-15 11:41:42 +01:00
Evgeny Poberezkin da4277b01e Merge branch 'master' into 5.0.0 2017-02-28 19:59:51 +00:00
Evgeny Poberezkin 64aa3f3909 docs: type definition for schemaId option 2017-02-27 20:00:33 +00:00
Donald Pipowitch 6cc12130da Update ajv.d.ts 2017-02-21 14:55:57 +01:00
Evgeny Poberezkin 8bb3b52f55 feat: serialize option, closes #385, closes #341 2017-01-21 20:28:50 +00:00
Evgeny Poberezkin f89a04de4c docs: fixed custom keyword definition typing 2017-01-20 23:39:27 +00:00
Evgeny Poberezkin a06327eab4 Merge branch 'master' into 5.0.0 2017-01-20 23:30:54 +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 fc1c46cbfa feat: option processCode replaced option beautify, closes #382 2016-12-26 16:57:06 +00:00
Evgeny Poberezkin 6036f3ff07 feat: update type definitions
allow boolean schemas
async validation promise resolves with data
properties of custom keyword definition ($data and metaSchema)
custom keyword schema can be any value
keyword schema in error object can be any value
optional propertyName property of error object for all keywords (added when validating schema in propertyNames)
propertyNames keyword error params
2016-12-25 21:39:36 +00:00
Evgeny Poberezkin 416f294350 Merge branch 'master' into 5.0.0 2016-12-23 19:47:01 +00:00
Evgeny Poberezkin 8a470f32df docs: getKeyword, removeKeywords methods 2016-12-11 12:38:13 +00:00
Evgeny Poberezkin 547b44013d Merge branch 'domoritz-patch-1' into 5.0.0 2016-11-30 21:03:25 +00:00
Evgeny Poberezkin 445acb5afd style: single quotes 2016-11-30 20:25:39 +00:00
Dominik Moritz 14cd94d3cf Update types for options from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/types-2.0/ajv/index.d.ts 2016-11-29 19:53:52 -08:00
Evgeny Poberezkin 98e0922ae7 Merge branch 'master' into 5.0.0 2016-11-08 17:37:08 +00:00
Evgeny Poberezkin 69f1e639d7 docs: compileAsync meta-schema support, closes #334 2016-11-08 17:32:22 +00:00
Evgeny Poberezkin 81c2069354 fix: type definition for option unknownFormats 2016-10-20 00:29:10 +01:00
Evgeny Poberezkin 3fab5c7019 fix: type definition change for compileAsync, closes #249 2016-10-19 09:52:58 +01:00
Darcy Parker fd07efc4cf Add missing rootData parameter from ValidateFunction typescript interface (#301)
* Add missing rootData property from ValidateFunction typescript interface

* Made change @epoberezkin requested
2016-09-19 12:49:37 +01:00
Dalci de Jesus Bagolin 2fc93a8acd [typescript] Allow use 'new' operator 2016-08-04 22:41:17 -04:00
will Farrell 9e18e68ce7 Add in ability to coerce to an array 2016-07-22 18:07:10 -06:00
Dan Casey 3de58ec4cd Add `schema` to interface returned by `getSchema` 2016-06-26 16:00:23 -04: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
Holger Jeromin c28a2f8f5d Removed internal Parameters and added .errors 2016-05-13 00:54:18 +02:00
Holger Jeromin 1726e98878 copy jsdoc comment to typescript definition file 2016-05-10 11:25:18 +02:00
Blake Embrey 67f224630a TypeScript: Fix implicit any, fix `Promise` usage 2016-04-21 17:38:06 -07:00
Evgeny Poberezkin a954845be2 use typescript ES2015 for Promise support 2016-04-20 21:01:22 +01:00
Evgeny Poberezkin f7bfc49a55 fix and add tests for typescript type definitions 2016-04-20 20:55:43 +01:00
Evgeny Poberezkin 18ca34253f TypeScript type definitions 2016-04-18 22:11:26 +01:00
Evgeny Poberezkin 76bdf0796e TypeScript: Promise return value for validation functions 2016-04-17 20:10:12 +01:00
Evgeny Poberezkin e1f30a201b TypeScript format and keyword definition 2016-04-17 20:07:00 +01:00
Evgeny Poberezkin 6a2c8633cb correct TypeScript definitions 2016-04-17 19:37:40 +01:00
Blake Embrey 83427b8712 Support initial TypeScript definition 2016-04-15 12:20:35 -07:00