|
1 | 1 | ## Changelog |
2 | 2 |
|
| 3 | +- [Breaking] renamed `JSON` types and variables to `Json` |
| 4 | +- [Breaking] remove `oneOfSchema` helper property in favor of `getOneOfOrigin()` non-enumerable function |
| 5 | +- [Breaking] `getTemplate` will add only required properties per default. Use `addOptionalProps:true` to change this behaviour |
| 6 | +- [Breaking] change `unique-items-error` to point to error for duplicated item. |
| 7 | +- [add] introduce `mergeSchema`, `reduceSchema` and `resolveDynamicSchema` |
| 8 | +- [refactor] move dynamic resolvers `anyOf`, `allOf`, `oneOf`, `dependencies` and `if` to features modules |
| 9 | + |
3 | 10 | ### 7.0.0 |
4 | 11 |
|
5 | 12 | - changed core interface to draft for simpler configuration using a configuration map |
6 | 13 |
|
7 | 14 | **Breaking Changes** |
8 | 15 |
|
9 | | -- replaced `Core` interface by new `Draft` interface |
10 | | -- changed export of `Interface` to `Draft` |
11 | | -- changed export of `Interface` to `Draft` |
12 | | -- renamed `addSchema` to `addRemoteSchema` |
13 | | -- changed api of `compileSchema` to have an additional schema-parameter for rootSchema reference |
14 | | -- changed `compileSchema` and `addRemoteSchema` to work on instance state, instead of global state |
15 | | -- `addRemoteSchema`, `compileSchema` now requires draft instance as first parameter |
16 | | -- removed direct export of following functions: `addValidator`, `compileSchema`, `createSchemaOf`, `each`, `eachSchema`, `getChildSchemaSelection`, `getSchema`, `getTemplate`, `isValid`, `step`, `validate`. They are still accessible under the draftConfigs of each draft-version |
17 | | -- changed draft version of `JsonEditor` to draft07 |
| 16 | +- replaced `Core` interface by new `Draft` interface |
| 17 | +- changed export of `Interface` to `Draft` |
| 18 | +- changed export of `Interface` to `Draft` |
| 19 | +- renamed `addSchema` to `addRemoteSchema` |
| 20 | +- changed api of `compileSchema` to have an additional schema-parameter for rootSchema reference |
| 21 | +- changed `compileSchema` and `addRemoteSchema` to work on instance state, instead of global state |
| 22 | +- `addRemoteSchema`, `compileSchema` now requires draft instance as first parameter |
| 23 | +- removed direct export of following functions: `addValidator`, `compileSchema`, `createSchemaOf`, `each`, `eachSchema`, `getChildSchemaSelection`, `getSchema`, `getTemplate`, `isValid`, `step`, `validate`. They are still accessible under the draftConfigs of each draft-version |
| 24 | +- changed draft version of `JsonEditor` to draft07 |
18 | 25 |
|
19 | 26 | **Milestone** |
20 | 27 |
|
21 | | -- [✓] configurable and consistent draft api |
22 | | -- [✓] expose all function under their draft-version |
23 | | -- [✓] remove global states in remotes |
24 | | - |
| 28 | +- [✓] configurable and consistent draft api |
| 29 | +- [✓] expose all function under their draft-version |
| 30 | +- [✓] remove global states in remotes |
25 | 31 |
|
26 | 32 | ### 6.1.0 |
27 | 33 |
|
|
31 | 37 |
|
32 | 38 | ### version 4.0 |
33 | 39 |
|
34 | | -- [✓] Fix -- latest benchmark tests |
35 | | -- [✓] Fix -- iterate schema (using typeDefs) |
36 | | -- [✓] Fix -- scopes per schema-instance |
37 | | -- [✓] Fix -- insane $ref resolution 'node' can be in 'root/node' or 'root/folder/node' |
38 | | -- [✓] Refactor -- remove duplication from resolveRef.strict and resolveRef.withOverwrite |
39 | | -- [✓] Change -- improve function apis (param order, rootSchema per default) |
40 | | -- [✓] Fix -- `getTemplate` to resolve $ref to infinity |
| 40 | +- [✓] Fix -- latest benchmark tests |
| 41 | +- [✓] Fix -- iterate schema (using typeDefs) |
| 42 | +- [✓] Fix -- scopes per schema-instance |
| 43 | +- [✓] Fix -- insane $ref resolution 'node' can be in 'root/node' or 'root/folder/node' |
| 44 | +- [✓] Refactor -- remove duplication from resolveRef.strict and resolveRef.withOverwrite |
| 45 | +- [✓] Change -- improve function apis (param order, rootSchema per default) |
| 46 | +- [✓] Fix -- `getTemplate` to resolve $ref to infinity |
41 | 47 |
|
42 | 48 | **Breaking Changes** |
43 | 49 |
|
44 | | -- `iterateSchema` renamed to `eachSchema` |
45 | | -- `validate` and `isValid` changed signature from (schema, data, [pointer]) to (data, [schema], [pointer]) |
46 | | -- `validateAsync` changed signature from (schema, data, [pointer], [onError]) to (data, [{ schema, pointer, onError }]) |
47 | | -- `getTemplate` changed signature from (schema, data) to (data, [schema]) |
48 | | -- `getSchema` changed signature from (schema, data, [pointer]) to (pointer, [data], [schema]) |
49 | | -- `each` changed signature from (schema, data, [pointer]) to (data, [schema], [pointer]) |
50 | | -- `resolveOneOf` changed signature from (schema, data, [pointer]) to (data, [schema], [pointer]) |
51 | | -- `precompileSchema` renamed to `compileSchema` |
| 50 | +- `iterateSchema` renamed to `eachSchema` |
| 51 | +- `validate` and `isValid` changed signature from (schema, data, [pointer]) to (data, [schema], [pointer]) |
| 52 | +- `validateAsync` changed signature from (schema, data, [pointer], [onError]) to (data, [{ schema, pointer, onError }]) |
| 53 | +- `getTemplate` changed signature from (schema, data) to (data, [schema]) |
| 54 | +- `getSchema` changed signature from (schema, data, [pointer]) to (pointer, [data], [schema]) |
| 55 | +- `each` changed signature from (schema, data, [pointer]) to (data, [schema], [pointer]) |
| 56 | +- `resolveOneOf` changed signature from (schema, data, [pointer]) to (data, [schema], [pointer]) |
| 57 | +- `precompileSchema` renamed to `compileSchema` |
52 | 58 |
|
53 | 59 | **Milestone** consistent feature support |
54 | 60 |
|
55 | | -- [✓] no side-effects on added remote-schemas |
56 | | -- [✓] rootSchema should always be compiled |
57 | | -- [✓] Add missing support for allOf and anyOf type definitions in 'step' and 'getTemplate' |
58 | | -- [✓] Complete schema support in iterateSchema |
59 | | - |
| 61 | +- [✓] no side-effects on added remote-schemas |
| 62 | +- [✓] rootSchema should always be compiled |
| 63 | +- [✓] Add missing support for allOf and anyOf type definitions in 'step' and 'getTemplate' |
| 64 | +- [✓] Complete schema support in iterateSchema |
60 | 65 |
|
61 | 66 | ## 2017 |
62 | 67 |
|
63 | | -- [~] Features -- Improve validation maps to add & hook (!) custom entries (WIP, Add tests) |
64 | | -- [✓] Fix -- Return all errors in oneOf-validation |
65 | | -- [✓] Feature -- Error progress notification for async validation |
66 | | -- [✓] Refactor -- Keyword validators should only be called for defined keyword |
67 | | -- [✓] Feature -- getSchema of patternProperties |
| 68 | +- [~] Features -- Improve validation maps to add & hook (!) custom entries (WIP, Add tests) |
| 69 | +- [✓] Fix -- Return all errors in oneOf-validation |
| 70 | +- [✓] Feature -- Error progress notification for async validation |
| 71 | +- [✓] Refactor -- Keyword validators should only be called for defined keyword |
| 72 | +- [✓] Feature -- getSchema of patternProperties |
68 | 73 |
|
69 | 74 | **Milestone** add remaining draft04 features |
70 | | -- [✓] remote references |
71 | | -- [✓] default format validations |
72 | | -- [✓] definitions |
73 | | -- [✓] dependencies |
74 | | -- [✓] Features -- allOf |
75 | | -- [✓] Features -- anyOf |
76 | | -- [✓] Features -- type-array |
77 | | -- [✓] Features -- patternProperties |
78 | | -- [✓] Features -- uniqueItems |
79 | | -- [✓] Features -- oneOf: fail for multiple matching oneof-schemas |
80 | | -- [✓] Features -- oneOf: for non-arrays |
81 | | -- [✓] Features -- required (array of properties). Currently every property is required by default |
82 | 75 |
|
| 76 | +- [✓] remote references |
| 77 | +- [✓] default format validations |
| 78 | +- [✓] definitions |
| 79 | +- [✓] dependencies |
| 80 | +- [✓] Features -- allOf |
| 81 | +- [✓] Features -- anyOf |
| 82 | +- [✓] Features -- type-array |
| 83 | +- [✓] Features -- patternProperties |
| 84 | +- [✓] Features -- uniqueItems |
| 85 | +- [✓] Features -- oneOf: fail for multiple matching oneof-schemas |
| 86 | +- [✓] Features -- oneOf: for non-arrays |
| 87 | +- [✓] Features -- required (array of properties). Currently every property is required by default |
83 | 88 |
|
84 | 89 | ## 16/12 |
85 | 90 |
|
86 | | -- [✓] Testing (validate real json files) |
87 | | -- [✓] Test + document core differences |
88 | | -- [✓] Add async validation |
| 91 | +- [✓] Testing (validate real json files) |
| 92 | +- [✓] Test + document core differences |
| 93 | +- [✓] Add async validation |
89 | 94 |
|
90 | 95 | **Milestone** customizable default and form (json-editor) validation |
91 | | -- [✓] Sanitize Errors |
92 | | -- [✓] Features -- Add core: Form, fix core: Draft04 - by using separate functions |
93 | | -- [✓] Add getTemplate to core (resolveOneOf) |
94 | | -- [✓] Breaking -- Add sort of 'core' to customize validation, stepper, errors etc and reduce requried arguments |
| 96 | + |
| 97 | +- [✓] Sanitize Errors |
| 98 | +- [✓] Features -- Add core: Form, fix core: Draft04 - by using separate functions |
| 99 | +- [✓] Add getTemplate to core (resolveOneOf) |
| 100 | +- [✓] Breaking -- Add sort of 'core' to customize validation, stepper, errors etc and reduce requried arguments |
95 | 101 |
|
96 | 102 | **Milestone** custom validator (form-validation, oneOfProperty) |
97 | | -- [✓] Features -- additionalProperties: Boolean | Schema |
98 | | -- [✓] Features -- additionalItems: Boolean | Schema |
99 | | -- [✓] Features -- Add support for type "integer" |
100 | | -- [✓] Features -- oneOf -> oneOfProperty ( + Documentation) |
101 | | -- [✓] Breaking -- change isValid to return boolean |
102 | | -- [✓] Breaking -- use `step` in isValid -- bad: circular dependencies with step -> guessOneOfSchema -> isValid --X-> step |
103 | | -- [✓] Features -- items: [] schema (order/defined indices) |
104 | | -- [✓] Features -- not |
105 | | -- [✓] Features -- return custom errors in data validation |
106 | | -- [✓] Basics |
| 103 | + |
| 104 | +- [✓] Features -- additionalProperties: Boolean | Schema |
| 105 | +- [✓] Features -- additionalItems: Boolean | Schema |
| 106 | +- [✓] Features -- Add support for type "integer" |
| 107 | +- [✓] Features -- oneOf -> oneOfProperty ( + Documentation) |
| 108 | +- [✓] Breaking -- change isValid to return boolean |
| 109 | +- [✓] Breaking -- use `step` in isValid -- bad: circular dependencies with step -> guessOneOfSchema -> isValid --X-> step |
| 110 | +- [✓] Features -- items: [] schema (order/defined indices) |
| 111 | +- [✓] Features -- not |
| 112 | +- [✓] Features -- return custom errors in data validation |
| 113 | +- [✓] Basics |
0 commit comments