Skip to content

Commit 4f09473

Browse files
committed
Update test
1 parent 6ebc492 commit 4f09473

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/Microsoft.OpenApi.Readers.Tests/ReferenceService/TryLoadReferenceV2Tests.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
// Copyright (c) Microsoft Corporation. All rights reserved.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

44
using System.Collections.Generic;
55
using System.IO;
66
using FluentAssertions;
77
using Json.Schema;
88
using Microsoft.OpenApi.Models;
9+
using Microsoft.OpenApi.Reader;
910
using Xunit;
1011

1112
namespace Microsoft.OpenApi.Readers.Tests.ReferenceService
@@ -138,6 +139,12 @@ public void LoadResponseAndSchemaReference()
138139
{
139140
Schema = new JsonSchemaBuilder()
140141
.Ref("#/definitions/SampleObject2")
142+
.Description("Sample description")
143+
.Required("name")
144+
.Properties(
145+
("name", new JsonSchemaBuilder().Type(SchemaValueType.String)),
146+
("tag", new JsonSchemaBuilder().Type(SchemaValueType.String)))
147+
.Build()
141148
}
142149
},
143150
Reference = new()

0 commit comments

Comments
 (0)