mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 12:37:48 +00:00
discovered a bug in content changes
Switching machines, I can’t use this laptop for any real work. Signed-off-by: Dave Shanley <dshanley@splunk.com>
This commit is contained in:
committed by
Dave Shanley
parent
ecb7603a32
commit
22ca3ced63
@@ -122,6 +122,10 @@ paths:
|
|||||||
/burgers/{burgerId}:
|
/burgers/{burgerId}:
|
||||||
get:
|
get:
|
||||||
callbacks:
|
callbacks:
|
||||||
|
someCallback:
|
||||||
|
$ref: '#/components/callbacks/BurgerCallback'
|
||||||
|
niceCallback:
|
||||||
|
$ref: '#/components/callbacks/BurgerCallback'
|
||||||
burgerCallback:
|
burgerCallback:
|
||||||
$ref: '#/components/callbacks/BurgerCallback'
|
$ref: '#/components/callbacks/BurgerCallback'
|
||||||
operationId: locateBurger
|
operationId: locateBurger
|
||||||
@@ -136,6 +140,9 @@ paths:
|
|||||||
"200":
|
"200":
|
||||||
description: A tasty burger for you to eat. Wide variety of products to choose from
|
description: A tasty burger for you to eat. Wide variety of products to choose from
|
||||||
content:
|
content:
|
||||||
|
application/xml:
|
||||||
|
schema:
|
||||||
|
type: int
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Burger'
|
$ref: '#/components/schemas/Burger'
|
||||||
@@ -146,10 +153,10 @@ paths:
|
|||||||
summary: A tasty treat from the sea
|
summary: A tasty treat from the sea
|
||||||
value:
|
value:
|
||||||
name: Filet-O-Fish
|
name: Filet-O-Fish
|
||||||
numPatties: 1
|
numPatties: 2
|
||||||
links:
|
links:
|
||||||
ListBurgerDressings:
|
ListBurgerDressings:
|
||||||
operationId: listBurgerDressings
|
operationId: listBurgerDressingsOhMy
|
||||||
parameters:
|
parameters:
|
||||||
dressingId: 'something here'
|
dressingId: 'something here'
|
||||||
description: 'Try the ketchup!'
|
description: 'Try the ketchup!'
|
||||||
@@ -167,7 +174,7 @@ paths:
|
|||||||
"500":
|
"500":
|
||||||
description: Unexpected error. Sorry.
|
description: Unexpected error. Sorry.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/xml:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Error'
|
$ref: '#/components/schemas/Error'
|
||||||
examples:
|
examples:
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ func TestCompareOpenAPIDocuments(t *testing.T) {
|
|||||||
modDoc, _ := v3.CreateDocument(infoMod)
|
modDoc, _ := v3.CreateDocument(infoMod)
|
||||||
|
|
||||||
changes := CompareOpenAPIDocuments(origDoc, modDoc)
|
changes := CompareOpenAPIDocuments(origDoc, modDoc)
|
||||||
assert.Equal(t, 21, changes.TotalChanges())
|
assert.Equal(t, 28, changes.TotalChanges())
|
||||||
assert.Equal(t, 3, changes.TotalBreakingChanges())
|
assert.Equal(t, 5, changes.TotalBreakingChanges())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user