Skip to content

Commit 7a00fe4

Browse files
Append instead of change the ".xml" file extension. Fixes #1169
1 parent f6cdb9c commit 7a00fe4

4 files changed

Lines changed: 19 additions & 19 deletions

File tree

src/AspNetCore/WebApi/src/Asp.Versioning.OpenApi/Transformers/XmlCommentsFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public XmlCommentsFile( Assembly[] assemblies, IHostEnvironment environment )
2424
for ( var i = 0; i < assemblies.Length; i++ )
2525
{
2626
var assembly = assemblies[i];
27-
var fileName = FilePath.ChangeExtension( assembly.GetName().Name, ".xml" );
27+
var fileName = assembly.GetName().Name + ".xml";
2828

2929
if ( string.IsNullOrEmpty( fileName ) )
3030
{

src/AspNetCore/WebApi/test/Asp.Versioning.OpenApi.Tests/Content/v1-minimal.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"tags": [
1717
"Test"
1818
],
19-
"summary": "",
20-
"description": "",
19+
"summary": "Test",
20+
"description": "A test API.",
2121
"parameters": [
2222
{
2323
"name": "id",
2424
"in": "path",
25-
"description": "",
25+
"description": "A test parameter.",
2626
"required": true,
2727
"schema": {
2828
"pattern": "^-?(?:0|[1-9]\\d*)$",
@@ -43,7 +43,7 @@
4343
],
4444
"responses": {
4545
"200": {
46-
"description": "OK",
46+
"description": "Pass",
4747
"content": {
4848
"application/json": {
4949
"schema": {
@@ -58,7 +58,7 @@
5858
}
5959
},
6060
"400": {
61-
"description": "Bad Request"
61+
"description": "Fail"
6262
}
6363
}
6464
}

src/AspNetCore/WebApi/test/Asp.Versioning.OpenApi.Tests/Content/v1-mixed.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"tags": [
1717
"Test"
1818
],
19-
"summary": "",
20-
"description": "",
19+
"summary": "Test",
20+
"description": "A test API.",
2121
"parameters": [
2222
{
2323
"name": "id",
2424
"in": "path",
25-
"description": "",
25+
"description": "A test parameter.",
2626
"required": true,
2727
"schema": {
2828
"pattern": "^-?(?:0|[1-9]\\d*)$",
@@ -43,7 +43,7 @@
4343
],
4444
"responses": {
4545
"200": {
46-
"description": "OK",
46+
"description": "Pass",
4747
"content": {
4848
"application/json": {
4949
"schema": {
@@ -58,7 +58,7 @@
5858
}
5959
},
6060
"400": {
61-
"description": "Bad Request"
61+
"description": "Fail"
6262
}
6363
}
6464
}
@@ -68,13 +68,13 @@
6868
"tags": [
6969
"Test"
7070
],
71-
"summary": "",
72-
"description": "",
71+
"summary": "Test",
72+
"description": "A test API.",
7373
"parameters": [
7474
{
7575
"name": "id",
7676
"in": "query",
77-
"description": "",
77+
"description": "A test parameter.",
7878
"schema": {
7979
"pattern": "^-?(?:0|[1-9]\\d*)$",
8080
"type": [
@@ -97,7 +97,7 @@
9797
],
9898
"responses": {
9999
"200": {
100-
"description": "OK",
100+
"description": "Pass",
101101
"content": {
102102
"text/plain": {
103103
"schema": {

src/AspNetCore/WebApi/test/Asp.Versioning.OpenApi.Tests/Content/v1.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"tags": [
1717
"Test"
1818
],
19-
"summary": "",
20-
"description": "",
19+
"summary": "Test",
20+
"description": "A test API.",
2121
"parameters": [
2222
{
2323
"name": "id",
2424
"in": "query",
25-
"description": "",
25+
"description": "A test parameter.",
2626
"schema": {
2727
"pattern": "^-?(?:0|[1-9]\\d*)$",
2828
"type": [
@@ -45,7 +45,7 @@
4545
],
4646
"responses": {
4747
"200": {
48-
"description": "OK",
48+
"description": "Pass",
4949
"content": {
5050
"text/plain": {
5151
"schema": {

0 commit comments

Comments
 (0)