Skip to content

Commit 1a7cc3f

Browse files
authored
Merge pull request #404 from json-schema-tools/fix/new-meta-schema
fix: update to new meta-schema
2 parents 2ff7bef + 13487f5 commit 1a7cc3f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
],
2929
"devDependencies": {
3030
"@json-schema-tools/dereferencer": "^1.5.2",
31-
"@json-schema-tools/meta-schema": "^1.6.10",
31+
"@json-schema-tools/meta-schema": "^1.6.18",
3232
"@types/inquirer": "^7.3.1",
3333
"@types/jest": "^26.0.15",
3434
"@types/lodash.camelcase": "^4.3.6",

src/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Transpiler from "./index";
2-
import { Definitions, Properties, JSONSchemaObject, SchemaArray } from "@json-schema-tools/meta-schema";
2+
import { Definitions, Properties, JSONSchemaObject, SchemaArray, JSONSchema } from "@json-schema-tools/meta-schema";
33

44
describe("Transpiler", () => {
55
it("can be instantiated with a schema with subschemas", () => {
@@ -54,7 +54,7 @@ describe("Transpiler", () => {
5454

5555
testSchema.properties.fooBar = testSchema;
5656

57-
const transpiler = new Transpiler(testSchema);
57+
const transpiler = new Transpiler(testSchema as JSONSchema);
5858
const props = ((transpiler.megaSchema as JSONSchemaObject).properties as Properties);
5959
const defs = ((transpiler.megaSchema as JSONSchemaObject).definitions as Definitions);
6060
expect(props.foo.$ref).toBe("#/definitions/string_doaGddGA");

0 commit comments

Comments
 (0)