-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend the integration test coverage to include more of the test projects.
- Loading branch information
Showing
17 changed files
with
376 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
...ggerVerifyIntegrationTest.SwaggerEndpoint_ReturnsValidSwaggerJson_ForAutofaq.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"openapi": "3.0.1", | ||
"info": { | ||
"title": "CliExampleWithFactory", | ||
"version": "1.0" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "http://localhost:57556/" | ||
} | ||
], | ||
"paths": { | ||
"/products": { | ||
"get": { | ||
"tags": [ | ||
"Products" | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/components/schemas/Product" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"Product": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "integer", | ||
"format": "int32" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"nullable": true | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
} | ||
} | ||
} |
74 changes: 74 additions & 0 deletions
74
...rJson_Without_Startup_entryPointType=MinimalApp.Program_swaggerRequestUri=v1.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"openapi": "3.0.1", | ||
"info": { | ||
"title": "MinimalApp", | ||
"version": "v1" | ||
}, | ||
"paths": { | ||
"/WeatherForecast": { | ||
"get": { | ||
"tags": [ | ||
"WeatherForecast" | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"content": { | ||
"text/plain": { | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/components/schemas/WeatherForecast" | ||
} | ||
} | ||
}, | ||
"application/json": { | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/components/schemas/WeatherForecast" | ||
} | ||
} | ||
}, | ||
"text/json": { | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/components/schemas/WeatherForecast" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"WeatherForecast": { | ||
"type": "object", | ||
"properties": { | ||
"date": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"temperatureC": { | ||
"type": "integer", | ||
"format": "int32" | ||
}, | ||
"temperatureF": { | ||
"type": "integer", | ||
"format": "int32", | ||
"readOnly": true | ||
}, | ||
"summary": { | ||
"type": "string", | ||
"nullable": true | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...Without_Startup_entryPointType=TopLevelSwaggerDoc.Program_swaggerRequestUri=.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"openapi": "3.0.1", | ||
"info": { | ||
"title": "Test API", | ||
"version": "1" | ||
}, | ||
"paths": { }, | ||
"components": { } | ||
} |
82 changes: 82 additions & 0 deletions
82
...rJson_Without_Startup_entryPointType=WebApi.Aot.Program_swaggerRequestUri=v1.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"openapi": "3.0.1", | ||
"info": { | ||
"title": "Native AoT API V1", | ||
"description": "A sample API for testing Swashbuckle with native AoT", | ||
"termsOfService": "http://tempuri.org/terms", | ||
"version": "v1" | ||
}, | ||
"paths": { | ||
"/todos": { | ||
"get": { | ||
"tags": [ | ||
"WebApi.Aot" | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/components/schemas/Todo" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/todos/{id}": { | ||
"get": { | ||
"tags": [ | ||
"WebApi.Aot" | ||
], | ||
"parameters": [ | ||
{ | ||
"name": "id", | ||
"in": "path", | ||
"required": true, | ||
"schema": { | ||
"type": "integer", | ||
"format": "int32" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"Todo": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "integer", | ||
"format": "int32" | ||
}, | ||
"title": { | ||
"type": "string", | ||
"nullable": true | ||
}, | ||
"dueBy": { | ||
"type": "string", | ||
"format": "date", | ||
"nullable": true | ||
}, | ||
"isComplete": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.