Skip to content

Commit 2faeb0b

Browse files
committed
chore: adds tests for example reference inlining
Signed-off-by: Vincent Biret <[email protected]>
1 parent 66dcb21 commit 2faeb0b

File tree

12 files changed

+22
-30
lines changed

12 files changed

+22
-30
lines changed

test/Microsoft.OpenApi.Tests/Models/References/OpenApiExampleReferenceTests.SerializeCallbackReferenceAsV3JsonWorks_produceTerseOutput=False.verified.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/Microsoft.OpenApi.Tests/Models/References/OpenApiExampleReferenceTests.SerializeCallbackReferenceAsV3JsonWorks_produceTerseOutput=True.verified.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
22
"summary": "Example of a local user",
33
"description": "This is an example of a local user",
4-
"value": [
5-
{
6-
"id": 1,
7-
"name": "John Doe"
8-
}
9-
]
4+
"$ref": "#/components/examples/UserExample"
105
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"summary":"Example of a local user","description":"This is an example of a local user","$ref":"#/components/examples/UserExample"}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"$ref": "#/components/examples/UserExample"
3+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "This is is an example of a user",
44
"value": [
55
{
6-
"id": "1",
6+
"id": 1,
77
"name": "John Doe"
88
}
99
]

test/Microsoft.OpenApi.Tests/Models/References/OpenApiExampleReferenceTests.SerializeExampleReferenceAsV3JsonWorks_produceTerseOutput=True.verified.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"$ref":"#/components/examples/UserExample"}

0 commit comments

Comments
 (0)