fix: type safety for operation summary handling (via #5191)

* fix: gracefully handle non-string operation summaries

* use lodash for more summary type safety
This commit is contained in:
kyle
2019-02-23 17:00:29 -08:00
committed by GitHub
parent 1e184e8e21
commit ff496fa5bd
3 changed files with 22 additions and 6 deletions

View File

@@ -8,10 +8,17 @@ paths:
/pet:
get:
tags:
- pet
- default
summary:
$ref:
operationId: addPet
whatever: 123
operationId: objectSummary
responses:
'405':
description: Invalid input
post:
tags:
- default
operationId: noSummary
responses:
'405':
description: Invalid input