Skip to content

Commit 78458e8

Browse files
committed
test: adds serialization tests for 32 media type reference serialization
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent 1fc5629 commit 78458e8

3 files changed

+310
-290
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"openapi": "3.2.0",
3+
"info": {
4+
"title": "Test API",
5+
"version": "1.0.0"
6+
},
7+
"paths": {
8+
"/test": {
9+
"post": {
10+
"requestBody": {
11+
"content": {
12+
"application/json": {
13+
"$ref": "#/components/mediaTypes/JsonMediaType"
14+
}
15+
}
16+
},
17+
"responses": { }
18+
}
19+
}
20+
},
21+
"components": {
22+
"mediaTypes": {
23+
"JsonMediaType": {
24+
"schema": {
25+
"type": "object"
26+
}
27+
}
28+
}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"openapi":"3.2.0","info":{"title":"Test API","version":"1.0.0"},"paths":{"/test":{"post":{"requestBody":{"content":{"application/json":{"$ref":"#/components/mediaTypes/JsonMediaType"}}},"responses":{}}}},"components":{"mediaTypes":{"JsonMediaType":{"schema":{"type":"object"}}}}}

0 commit comments

Comments
 (0)