-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(reference): add OAS 3.1 Example.externalValue dereference
Refs #467
- Loading branch information
Showing
27 changed files
with
367 additions
and
6 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
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
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
14 changes: 14 additions & 0 deletions
14
...ce/strategies/openapi-3-1/example-object/fixtures/external-value-binary/dereferenced.json
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+15 KB
...eference/strategies/openapi-3-1/example-object/fixtures/external-value-binary/favicon.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
...ereference/strategies/openapi-3-1/example-object/fixtures/external-value-binary/root.json
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,11 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"components": { | ||
"examples": { | ||
"example1": { | ||
"description": "example1 description", | ||
"externalValue": "./favicon.ico" | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...gies/openapi-3-1/example-object/fixtures/external-value-ignore-external/dereferenced.json
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,13 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"components": { | ||
"examples": { | ||
"example1": { | ||
"description": "example1 description", | ||
"externalValue": "./ex.json" | ||
} | ||
} | ||
} | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
...nce/strategies/openapi-3-1/example-object/fixtures/external-value-ignore-external/ex.json
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 @@ | ||
{} |
11 changes: 11 additions & 0 deletions
11
...e/strategies/openapi-3-1/example-object/fixtures/external-value-ignore-external/root.json
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,11 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"components": { | ||
"examples": { | ||
"example1": { | ||
"description": "example1 description", | ||
"externalValue": "./ex.json" | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...ence/strategies/openapi-3-1/example-object/fixtures/external-value-json/dereferenced.json
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,17 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"components": { | ||
"examples": { | ||
"example1": { | ||
"description": "example1 description", | ||
"value": { | ||
"prop1": "value1", | ||
"prop2": "value2" | ||
}, | ||
"externalValue": "./ex.json" | ||
} | ||
} | ||
} | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
...st/dereference/strategies/openapi-3-1/example-object/fixtures/external-value-json/ex.json
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,4 @@ | ||
{ | ||
"prop1": "value1", | ||
"prop2": "value2" | ||
} |
11 changes: 11 additions & 0 deletions
11
.../dereference/strategies/openapi-3-1/example-object/fixtures/external-value-json/root.json
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,11 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"components": { | ||
"examples": { | ||
"example1": { | ||
"description": "example1 description", | ||
"externalValue": "./ex.json" | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...e/strategies/openapi-3-1/example-object/fixtures/external-value-pointer/dereferenced.json
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,17 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"components": { | ||
"examples": { | ||
"example1": { | ||
"description": "example1 description", | ||
"value": { | ||
"prop1": "value1", | ||
"prop2": "value2" | ||
}, | ||
"externalValue": "./ex.json#/json/pointer" | ||
} | ||
} | ||
} | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
...dereference/strategies/openapi-3-1/example-object/fixtures/external-value-pointer/ex.json
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,4 @@ | ||
{ | ||
"prop1": "value1", | ||
"prop2": "value2" | ||
} |
11 changes: 11 additions & 0 deletions
11
...reference/strategies/openapi-3-1/example-object/fixtures/external-value-pointer/root.json
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,11 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"components": { | ||
"examples": { | ||
"example1": { | ||
"description": "example1 description", | ||
"externalValue": "./ex.json#/json/pointer" | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ence/strategies/openapi-3-1/example-object/fixtures/external-value-text/dereferenced.json
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 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"components": { | ||
"examples": { | ||
"example1": { | ||
"description": "example1 description", | ||
"value": "dmFsMTt2YWwyO3ZhbDMK", | ||
"externalValue": "./ex.csv" | ||
} | ||
} | ||
} | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
...est/dereference/strategies/openapi-3-1/example-object/fixtures/external-value-text/ex.csv
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 @@ | ||
val1;val2;val3 |
11 changes: 11 additions & 0 deletions
11
.../dereference/strategies/openapi-3-1/example-object/fixtures/external-value-text/root.json
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,11 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"components": { | ||
"examples": { | ||
"example1": { | ||
"description": "example1 description", | ||
"externalValue": "./ex.csv" | ||
} | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ence/strategies/openapi-3-1/example-object/fixtures/external-value-unresolvable/root.json
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,11 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"components": { | ||
"examples": { | ||
"example1": { | ||
"description": "example1 description", | ||
"externalValue": "./ex.json" | ||
} | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
.../strategies/openapi-3-1/example-object/fixtures/external-value-value-both-defined/ex.json
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 changes: 12 additions & 0 deletions
12
...trategies/openapi-3-1/example-object/fixtures/external-value-value-both-defined/root.json
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 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"components": { | ||
"examples": { | ||
"example1": { | ||
"description": "example1 description", | ||
"value": "sample value", | ||
"externalValue": "./ex.json" | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...ence/strategies/openapi-3-1/example-object/fixtures/external-value-yaml/dereferenced.json
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,17 @@ | ||
[ | ||
{ | ||
"openapi": "3.1.0", | ||
"components": { | ||
"examples": { | ||
"example1": { | ||
"description": "example1 description", | ||
"value": { | ||
"prop1": "value1", | ||
"prop2": "value2" | ||
}, | ||
"externalValue": "./ex.yaml" | ||
} | ||
} | ||
} | ||
} | ||
] |
3 changes: 3 additions & 0 deletions
3
...st/dereference/strategies/openapi-3-1/example-object/fixtures/external-value-yaml/ex.yaml
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,3 @@ | ||
--- | ||
prop1: value1 | ||
prop2: value2 |
11 changes: 11 additions & 0 deletions
11
.../dereference/strategies/openapi-3-1/example-object/fixtures/external-value-yaml/root.json
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,11 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"components": { | ||
"examples": { | ||
"example1": { | ||
"description": "example1 description", | ||
"externalValue": "./ex.yaml" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.