@@ -136,40 +136,6 @@ public async Task ParseSubschemaComponentJsonSchemaReferenceWorks()
136136            Assert . Equal ( JsonSchemaType . Object ,  schema . Type ) ; 
137137        } 
138138
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- 
173139        [ Fact ] 
174140        public  async  Task  ParseReferenceToInternalComponentUsingDollarIdWorks ( ) 
175141        { 
@@ -183,23 +149,5 @@ public async Task ParseReferenceToInternalComponentUsingDollarIdWorks()
183149            // Assert 
184150            Assert . Equal ( JsonSchemaType . Object ,  schema . Type ) ; 
185151        } 
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-         } 
204152    } 
205153} 
0 commit comments