Skip to content

Commit 88badd4

Browse files
committed
chore: aligns test definition with other tests
Signed-off-by: Vincent Biret <[email protected]>
1 parent 45e40fa commit 88badd4

3 files changed

+18
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
11
{
2-
"$ref": "#/components/requestBodies/UserRequest"
2+
"description": "User request body",
3+
"content": {
4+
"application/json": {
5+
"schema": {
6+
"type": "object",
7+
"properties": {
8+
"name": {
9+
"type": "string"
10+
},
11+
"email": {
12+
"type": "string"
13+
}
14+
}
15+
}
16+
}
17+
}
318
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"$ref":"#/components/requestBodies/UserRequest"}
1+
{"description":"User request body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"}}}}}}

test/Microsoft.OpenApi.Tests/Models/References/OpenApiRequestBodyReferenceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public async Task SerializeRequestBodyReferenceAsV31JsonWorks(bool produceTerseO
145145
{
146146
// Arrange
147147
var outputStringWriter = new StringWriter(CultureInfo.InvariantCulture);
148-
var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput });
148+
var writer = new OpenApiJsonWriter(outputStringWriter, new OpenApiJsonWriterSettings { Terse = produceTerseOutput, InlineLocalReferences = true });
149149

150150
// Act
151151
_localRequestBodyReference.SerializeAsV31(writer);

0 commit comments

Comments
 (0)