Skip to content

Commit 29b766b

Browse files
author
Sascha Goldhofer
committed
Merge remote-tracking branch 'origin/develop' into main
# Conflicts: # dist/jsonSchemaLibrary.js # dist/module/lib/getTemplate.js # dist/module/lib/step.js # dist/module/lib/validate.js # lib/getTemplate.ts # lib/step.ts # package.json # test/unit/getTemplate.test.ts # yarn.lock
2 parents 2851ed9 + b794776 commit 29b766b

File tree

203 files changed

+5779
-4182
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+5779
-4182
lines changed

CHANGELOG.md

Lines changed: 74 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,33 @@
11
## Changelog
22

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+
310
### 7.0.0
411

512
- changed core interface to draft for simpler configuration using a configuration map
613

714
**Breaking Changes**
815

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
1825

1926
**Milestone**
2027

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
2531

2632
### 6.1.0
2733

@@ -31,76 +37,77 @@
3137

3238
### version 4.0
3339

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
4147

4248
**Breaking Changes**
4349

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`
5258

5359
**Milestone** consistent feature support
5460

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
6065

6166
## 2017
6267

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
6873

6974
**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
8275

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
8388

8489
## 16/12
8590

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
8994

9095
**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
95101

96102
**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

Comments
 (0)