Skip to content

Conversation

@sarangan12
Copy link
Contributor

Old Output
JSON

{
  "id": "1001",
  "code": "NoVersionChange",
  "message": "The versions have not changed.",
  "jsonref": "#",
  "json-path": "#",
  "type": "Info"
}
{
  "id": "1005",
  "code": "RemovedPath",
  "message": "The new version is missing a path that was found in the old version. Was path '/api/Parameters/{a}' removed or restructured?",
  "jsonref": "#/paths/~1api~1Parameters~1{a}",
  "json-path": "#/paths/api/Parameters/{a}",
  "type": "Error"
}
{
  "id": "1005",
  "code": "RemovedPath",
  "message": "The new version is missing a path that was found in the old version. Was path '/api/Responses' removed or restructured?",
  "jsonref": "#/paths/~1api~1Responses",
  "json-path": "#/paths/api/Responses",
  "type": "Error"
}

String

code = NoVersionChange, type = Info, message = The versions have not changed.
code = RemovedPath, type = Error, message = The new version is missing a path that was found in the old version. Was path '/api/Parameters/{a}' removed or restructured?
code = RemovedPath, type = Error, message = The new version is missing a path that was found in the old version. Was path '/api/Responses' removed or restructured?

New Output
JSON

{
  "id": "1001",
  "code": "NoVersionChange",
  "message": "The versions have not changed.",
  "jsonref": "#",
  "json-path": "#",
  "type": "Info",
  "docurl": "https://github.com/Azure/openapi-diff/tree/master/docs/rules/1001.md",
  "mode": "Update"
}
{
  "id": "1005",
  "code": "RemovedPath",
  "message": "The new version is missing a path that was found in the old version. Was path '/api/Parameters/{a}' removed or restructured?",
  "jsonref": "#/paths/~1api~1Parameters~1{a}",
  "json-path": "#/paths/api/Parameters/{a}",
  "type": "Error",
  "docurl": "https://github.com/Azure/openapi-diff/tree/master/docs/rules/1005.md",
  "mode": "Removal"
}
{
  "id": "1005",
  "code": "RemovedPath",
  "message": "The new version is missing a path that was found in the old version. Was path '/api/Responses' removed or restructured?",
  "jsonref": "#/paths/~1api~1Responses",
  "json-path": "#/paths/api/Responses",
  "type": "Error",
  "docurl": "https://github.com/Azure/openapi-diff/tree/master/docs/rules/1005.md",
  "mode": "Removal"
}

String

code = NoVersionChange, type = Info, message = The versions have not changed., docurl = https://github.com/Azure/openapi-diff/tree/master/docs/rules/1001.md, mode = Update
code = RemovedPath, type = Error, message = The new version is missing a path that was found in the old version. Was path '/api/Parameters/{a}' removed or restructured?, docurl = https://github.com/Azure/openapi-diff/tree/master/docs/rules/1005.md, mode = Removal
code = RemovedPath, type = Error, message = The new version is missing a path that was found in the old version. Was path '/api/Responses' removed or restructured?, docurl = https://github.com/Azure/openapi-diff/tree/master/docs/rules/1005.md, mode = Removal

@sarangan12 sarangan12 merged commit 42de4a9 into Azure:master Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants