File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
test/Microsoft.OpenApi.Tests/Workspaces Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -111,10 +111,11 @@ public void OpenApiWorkspacesAllowDocumentsToReferenceEachOther_short()
111
111
re . CreateContent ( "application/json" , co =>
112
112
co . Schema = new OpenApiSchema ( )
113
113
{
114
- Reference = new OpenApiReference ( )
114
+ Reference = new OpenApiReference ( ) // Reference
115
115
{
116
116
Id = "test" ,
117
- Type = ReferenceType . Schema
117
+ Type = ReferenceType . Schema ,
118
+ ExternalResource = "common"
118
119
} ,
119
120
UnresolvedReference = true
120
121
}
@@ -127,6 +128,8 @@ public void OpenApiWorkspacesAllowDocumentsToReferenceEachOther_short()
127
128
128
129
workspace . AddDocument ( "common" , CreateCommonDocument ( ) ) ;
129
130
131
+
132
+
130
133
var schema = doc . Paths [ "/" ] . Operations [ OperationType . Get ] . Responses [ "200" ] . Content [ "application/json" ] . Schema ;
131
134
Assert . True ( schema . UnresolvedReference ) ;
132
135
}
You can’t perform that action at this time.
0 commit comments