-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(json-schema-parser): update typings with root schema ones
- Loading branch information
1 parent
66b397a
commit 39a6254
Showing
9 changed files
with
55 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
...ages/parser/json-schema-parser/src/jsonSchema/202012/calculations/getJsonSchemaBaseUri.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
packages/parser/json-schema-parser/src/jsonSchema/202012/models/DereferenceFunction.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import { JsonSchema } from '@cuaklabs/json-schema-types/2020-12'; | ||
import { | ||
JsonRootSchema, | ||
JsonSchema, | ||
} from '@cuaklabs/json-schema-types/2020-12'; | ||
|
||
import { DereferencedSchemaResult } from './DereferencedSchemaResult'; | ||
|
||
export type DereferenceFunction = ( | ||
schema: JsonSchema, | ||
schema: JsonRootSchema | JsonSchema, | ||
baseUri: string, | ||
uri: string, | ||
) => Promise<DereferencedSchemaResult>; |
9 changes: 6 additions & 3 deletions
9
packages/parser/json-schema-parser/src/jsonSchema/202012/models/DereferencedSchemaResult.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import { JsonSchema } from '@cuaklabs/json-schema-types/2020-12'; | ||
import { | ||
JsonRootSchema, | ||
JsonSchema, | ||
} from '@cuaklabs/json-schema-types/2020-12'; | ||
|
||
import { UriOptions } from '..'; | ||
import { UriOptions } from '../models/UriOptions'; | ||
|
||
export interface DereferencedSchemaResult { | ||
schema: JsonSchema; | ||
schema: JsonRootSchema | JsonSchema; | ||
uriOptions: UriOptions; | ||
} |
7 changes: 5 additions & 2 deletions
7
packages/parser/json-schema-parser/src/jsonSchema/202012/models/JsonSchemaParseResult.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import { JsonSchema } from '@cuaklabs/json-schema-types/2020-12'; | ||
import { | ||
JsonRootSchema, | ||
JsonSchema, | ||
} from '@cuaklabs/json-schema-types/2020-12'; | ||
|
||
export interface JsonSchemaParseResult { | ||
schemas: JsonSchema[]; | ||
referenceMap: Map<string, JsonSchema>; | ||
referenceMap: Map<string, JsonRootSchema | JsonSchema>; | ||
} |
7 changes: 5 additions & 2 deletions
7
packages/parser/json-schema-parser/src/jsonSchema/202012/models/ParseJsonSchemaOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import { JsonSchema } from '@cuaklabs/json-schema-types/2020-12'; | ||
import { | ||
JsonRootSchema, | ||
JsonSchema, | ||
} from '@cuaklabs/json-schema-types/2020-12'; | ||
|
||
import { UriOptions } from './UriOptions'; | ||
|
||
export interface ParseJsonSchemaOptions { | ||
schema: JsonSchema; | ||
schema: JsonRootSchema | JsonSchema; | ||
uriOptions: UriOptions; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
packages/parser/json-schema-parser/src/jsonSchema/202012/models/TraverseJsonSchemaParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import { JsonSchema } from '@cuaklabs/json-schema-types/2020-12'; | ||
import { | ||
JsonRootSchema, | ||
JsonSchema, | ||
} from '@cuaklabs/json-schema-types/2020-12'; | ||
|
||
export interface TraverseJsonSchemaParams { | ||
jsonPointer?: string; | ||
schema: JsonSchema; | ||
schema: JsonRootSchema | JsonSchema; | ||
} |