Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,10 @@ public void issue458ExclusiveMinimumTrueRemoved() {
assertOpenApiChangedEndpoints(
"issue-458-integer-limits_11.yaml", "issue-458-integer-limits_13.yaml");
}

@Test
public void issue488RenameParameterAddAndRemoveParameterReturnFalse() {
assertOpenApiChangedEndpoints(
"issue-488-1.json", "issue-488-2.json");
}
}
98 changes: 98 additions & 0 deletions core/src/test/resources/issue-488-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"openapi": "3.0.1",
"info": {
"title": "Test-API",
"description": "Testdescription",
"version": "v1"
},
"paths": {
"/api/v1/test": {
"get": {
"tags": [
"TestTag"
],
"summary": "Retrieve a list Test objects",
"description": "Usage with testId parameter is recommended.",
"parameters": [
{
"name": "testId",
"in": "query",
"description": "rename of prop before",
"schema": {
"type": "string"
}
},
{
"name": "dateFrom",
"in": "query",
"description": "Searches documents with creation date equal or younger specified timestamp",
"schema": {
"type": "string"
}
},
{
"name": "dateTo",
"in": "query",
"description": "Searches documents with creation date equal or older than specified timestamp",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TestDTO"
}
}
}
}
},
"401": {
"description": "Unauthorized"
}
}
}
}
},
"components": {
"schemas": {
"TestDTO": {
"type": "object",
"properties": {
"Id": {
"type": "string",
"nullable": true
},
"Timestamp": {
"type": "string",
"format": "date-time"
},
"Test": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
}
},
"securitySchemes": {
"BearerAuth": {
"type": "apiKey",
"description": "Fill in your acquired bearer token here, must be like 'Bearer TOKEN_HERE'",
"name": "Authorization",
"in": "header"
}
}
},
"security": [
{
"BearerAuth": [ ]
}
]
}
98 changes: 98 additions & 0 deletions core/src/test/resources/issue-488-2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"openapi": "3.0.1",
"info": {
"title": "Test-API",
"description": "Testdescription",
"version": "v1"
},
"paths": {
"/api/v1/test": {
"get": {
"tags": [
"TestTag"
],
"summary": "Retrieve a list Test objects",
"description": "Usage with testId parameter is recommended.",
"parameters": [
{
"name": "testIdWillBreak",
"in": "query",
"description": "rename of prop after",
"schema": {
"type": "string"
}
},
{
"name": "dateFrom",
"in": "query",
"description": "Searches documents with creation date equal or younger specified timestamp",
"schema": {
"type": "string"
}
},
{
"name": "dateTo",
"in": "query",
"description": "Searches documents with creation date equal or older than specified timestamp",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TestDTO"
}
}
}
}
},
"401": {
"description": "Unauthorized"
}
}
}
}
},
"components": {
"schemas": {
"TestDTO": {
"type": "object",
"properties": {
"Id": {
"type": "string",
"nullable": true
},
"Timestamp": {
"type": "string",
"format": "date-time"
},
"Test": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
}
},
"securitySchemes": {
"BearerAuth": {
"type": "apiKey",
"description": "Fill in your acquired bearer token here, must be like 'Bearer TOKEN_HERE'",
"name": "Authorization",
"in": "header"
}
}
},
"security": [
{
"BearerAuth": [ ]
}
]
}