File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
test/Microsoft.OpenApi.Readers.Tests/ReferenceService Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
- // Copyright (c) Microsoft Corporation. All rights reserved.
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT license.
3
3
4
4
using System . Collections . Generic ;
5
5
using System . IO ;
6
6
using FluentAssertions ;
7
7
using Json . Schema ;
8
8
using Microsoft . OpenApi . Models ;
9
+ using Microsoft . OpenApi . Reader ;
9
10
using Xunit ;
10
11
11
12
namespace Microsoft . OpenApi . Readers . Tests . ReferenceService
@@ -138,6 +139,12 @@ public void LoadResponseAndSchemaReference()
138
139
{
139
140
Schema = new JsonSchemaBuilder ( )
140
141
. 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 ( )
141
148
}
142
149
} ,
143
150
Reference = new ( )
You can’t perform that action at this time.
0 commit comments