Skip to content

Commit cbda1f4

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

File tree

19 files changed

+33
-33
lines changed

19 files changed

+33
-33
lines changed

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

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/Microsoft.OpenApi.Tests/Models/References/OpenApiHeaderReferenceTests.SerializeHeaderReferenceAsV2JsonWorksAsync_produceTerseOutput=False.verified.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"$ref": "#/headers/LocationHeader"
3+
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"description": "The URL of the newly created post",
3-
"schema": {
4-
"type": "string"
5-
}
3+
"type": "string"
64
}

test/Microsoft.OpenApi.Tests/Models/References/OpenApiHeaderReferenceTests.SerializeHeaderReferenceAsV2JsonWorksAsync_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":"#/headers/LocationHeader"}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"description":"The URL of the newly created post","type":"string"}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"description": "Location of the locally referenced post",
3-
"schema": {
4-
"type": "string"
5-
}
3+
"$ref": "#/components/headers/LocationHeader"
64
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"description":"Location of the locally referenced post","$ref":"#/components/headers/LocationHeader"}

0 commit comments

Comments
 (0)