Skip to content

Commit e715d2b

Browse files
committed
updated swagger.json to pass test
1 parent 71be36e commit e715d2b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/OpenApiTests/OpenApiDocumentTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public async Task Retrieved_document_matches_expected_document()
2323
// Arrange
2424
string embeddedResourceName = $"{nameof(OpenApiTests)}.swagger.json";
2525
string expectedDocument = await LoadEmbeddedResourceAsync(embeddedResourceName);
26-
string requestUrl = "swagger/v1/swagger.json";
26+
const string requestUrl = "swagger/v1/swagger.json";
2727

2828
// Act
2929
string actualDocument = await GetAsync(requestUrl);

test/OpenApiTests/swagger.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi": "3.0.1",
33
"info": {
44
"title": "OpenApiTests",
5-
"version": "1"
5+
"version": "1.0"
66
},
77
"paths": {
88
"/airplanes": {
@@ -366,13 +366,13 @@
366366
"requestBody": {
367367
"content": {
368368
"application/json": {
369-
"schema": {}
369+
"schema": { }
370370
},
371371
"text/json": {
372-
"schema": {}
372+
"schema": { }
373373
},
374374
"application/*+json": {
375-
"schema": {}
375+
"schema": { }
376376
}
377377
}
378378
},
@@ -804,13 +804,13 @@
804804
"requestBody": {
805805
"content": {
806806
"application/json": {
807-
"schema": {}
807+
"schema": { }
808808
},
809809
"text/json": {
810-
"schema": {}
810+
"schema": { }
811811
},
812812
"application/*+json": {
813-
"schema": {}
813+
"schema": { }
814814
}
815815
}
816816
},

0 commit comments

Comments
 (0)