-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [#631] testCLI.ts added tests for refOptions
- Loading branch information
Norbert Dopjera
committed
Sep 11, 2024
1 parent
116708b
commit 984bb9c
Showing
5 changed files
with
70 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
$schema: https://json-schema.org/draft/2020-12 | ||
$id: test/resources/refOptions/common.yml | ||
type: object | ||
properties: | ||
id: | ||
type: integer | ||
description: The unique identifier of the object | ||
name: | ||
type: string | ||
description: The name of the object | ||
required: | ||
- id |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
$schema: https://json-schema.org/draft/2020-12 | ||
$id: test/resources/refOptions/specific/caseA.yml | ||
type: object | ||
allOf: | ||
- $ref: test/resources/refOptions/common.yml | ||
- properties: | ||
module: | ||
type: string | ||
const: caseA | ||
is_old: | ||
type: boolean | ||
description: The age of the object | ||
required: | ||
- module |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
$schema: https://json-schema.org/draft/2020-12 | ||
$id: test/resources/refOptions/specific/caseB.yml | ||
type: object | ||
allOf: | ||
- $ref: test/resources/refOptions/common.yml | ||
- properties: | ||
module: | ||
type: string | ||
const: caseB | ||
age: | ||
type: | ||
description: The age of the object | ||
required: | ||
- module |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
$schema: https://json-schema.org/draft/2020-12 | ||
$id: test/resources/refOptions/specific/specific.yml | ||
type: object | ||
anyOf: | ||
- $ref: test/resources/refOptions/specific/caseA.yml | ||
- $ref: test/resources/refOptions/specific/caseB.yml |
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