@@ -136,40 +136,6 @@ public async Task ParseSubschemaComponentJsonSchemaReferenceWorks()
136
136
Assert . Equal ( JsonSchemaType . Object , schema . Type ) ;
137
137
}
138
138
139
- [ Fact ]
140
- public async Task ParseInternalComponentSubschemaJsonSchemaReferenceWorks ( )
141
- {
142
- // Arrange
143
- var filePath = Path . Combine ( SampleFolderPath , "internalComponentsSubschemaReference.yaml" ) ;
144
-
145
- // Act
146
- var actual = ( await OpenApiDocument . LoadAsync ( filePath , SettingsFixture . ReaderSettings ) ) . Document ;
147
- var schema = actual . Paths [ "/person/{id}/address" ] . Operations [ HttpMethod . Get ] . Responses [ "200" ] . Content [ "application/json" ] . Schema ;
148
-
149
- // Assert
150
- Assert . Equal ( JsonSchemaType . Object , schema . Type ) ;
151
- }
152
-
153
- [ Fact ]
154
- public async Task ParseExternalComponentSubschemaJsonSchemaReferenceWorks ( )
155
- {
156
- // Arrange
157
- var path = Path . Combine ( Directory . GetCurrentDirectory ( ) , SampleFolderPath ) ;
158
- var settings = new OpenApiReaderSettings
159
- {
160
- LoadExternalRefs = true ,
161
- BaseUrl = new ( path ) ,
162
- } ;
163
- settings . AddYamlReader ( ) ;
164
-
165
- // Act
166
- var actual = ( await OpenApiDocument . LoadAsync ( Path . Combine ( SampleFolderPath , "externalComponentSubschemaReference.yaml" ) , settings ) ) . Document ;
167
- var schema = actual . Paths [ "/person/{id}" ] . Operations [ HttpMethod . Get ] . Responses [ "200" ] . Content [ "application/json" ] . Schema ;
168
-
169
- // Assert
170
- Assert . Equal ( JsonSchemaType . Object , schema . Type ) ;
171
- }
172
-
173
139
[ Fact ]
174
140
public async Task ParseReferenceToInternalComponentUsingDollarIdWorks ( )
175
141
{
@@ -183,23 +149,5 @@ public async Task ParseReferenceToInternalComponentUsingDollarIdWorks()
183
149
// Assert
184
150
Assert . Equal ( JsonSchemaType . Object , schema . Type ) ;
185
151
}
186
-
187
- [ Fact ]
188
- public async Task ParseLocalReferenceToJsonSchemaResourceWorks ( )
189
- {
190
- // Arrange
191
- var filePath = Path . Combine ( SampleFolderPath , "localReferenceToJsonSchemaResource.yaml" ) ;
192
- var stringWriter = new StringWriter ( ) ;
193
- var writer = new OpenApiYamlWriter ( stringWriter ) ;
194
-
195
- // Act
196
- var actual = ( await OpenApiDocument . LoadAsync ( filePath , SettingsFixture . ReaderSettings ) ) . Document ;
197
- var schema = actual . Components . Schemas [ "a" ] . Properties [ "b" ] . Properties [ "c" ] . Properties [ "b" ] ;
198
- schema . SerializeAsV31 ( writer ) ;
199
- var content = stringWriter . ToString ( ) ;
200
-
201
- // Assert
202
- Assert . Equal ( JsonSchemaType . Object | JsonSchemaType . Null , schema . Type ) ;
203
- }
204
152
}
205
153
}
0 commit comments