Skip to content

Commit 4e480ed

Browse files
committed
Update test file and test
1 parent 4f09473 commit 4e480ed

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

test/Microsoft.OpenApi.Readers.Tests/V2Tests/OpenApiDocumentTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ public void ShouldAssignSchemaToAllResponses()
165165
.Properties(("id", new JsonSchemaBuilder().Type(SchemaValueType.String).Description("Item identifier."))));
166166

167167
var errorSchema = new JsonSchemaBuilder()
168+
.Ref("#/definitions/Error")
168169
.Properties(("code", new JsonSchemaBuilder().Type(SchemaValueType.Integer).Format("int32")),
169170
("message", new JsonSchemaBuilder().Type(SchemaValueType.String)),
170171
("fields", new JsonSchemaBuilder().Type(SchemaValueType.String)));

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ public class OpenApiResponseReferenceTest
5656
text/plain:
5757
schema:
5858
$ref: '#/components/schemas/Pong'
59+
schemas:
60+
Pong:
61+
type: object
62+
properties:
63+
sound:
64+
type: string
5965
";
6066

6167
private readonly OpenApiResponseReference _localResponseReference;

0 commit comments

Comments
 (0)