Skip to content

Commit

Permalink
change: remove SchemaService
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Goldhofer committed Jul 3, 2023
1 parent 898c2c7 commit b794776
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 76 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -925,8 +925,9 @@ With version `v8.0.0`, _getTemplate_ was improved to better support optional pro

- Renamed `JSONError` to `JsonError` and `JSONSchema` to `JsonSchema`
- `getTemplate` only adds required properties. Behaviour can be changed by [getTemplate default options](#gettemplate-default-options)
- internal schema property `oneOfSchema` has been replaced by `schema.getOneOfOrigin()`
- Internal schema property `oneOfSchema` has been replaced by `schema.getOneOfOrigin()`
- Changed `unique-items-error` to point to error for duplicated item and changed data-properties
- Removed `SchemaService` as it was no longer used nor tested

<details><summary>Exposed new helper functions</summary>

Expand Down
4 changes: 1 addition & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { resolveOneOf, resolveOneOfFuzzy } from "./lib/features/oneOf";
import { resolveAllOf } from "./lib/features/allOf";
import resolveRef from "./lib/resolveRef.strict";
import resolveRefMerge from "./lib/resolveRef.merge";
import SchemaService from "./lib/SchemaService";
import settings from "./lib/config/settings";
import strings from "./lib/config/strings";
import validateAsync from "./lib/validateAsync";
Expand Down Expand Up @@ -36,7 +35,7 @@ export {
getTypeOf, // returns the javascript datatype
isDynamicSchema, // NEW
isJsonError,
JsonEditor, // adjusted core of draft04 to better support the json-editor
JsonEditor, // adjusted core of draft07 to better support the json-editor
mergeSchema, // NEW
reduceSchema, // NEW
render,
Expand All @@ -46,7 +45,6 @@ export {
resolveOneOfFuzzy,
resolveRef,
resolveRefMerge,
SchemaService,
settings,
validateAsync // async validation of data by a schema
};
Expand Down
72 changes: 0 additions & 72 deletions lib/SchemaService.ts

This file was deleted.

0 comments on commit b794776

Please sign in to comment.