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