Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add check for duplicate operation ids
Fixes #68
- Loading branch information
1 parent
bbf1c79
commit 4e6ed4b
Showing
3 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test/specs/validate-spec/invalid/duplicate-operation-ids.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
swagger: "2.0" | ||
info: | ||
version: "1.0.0" | ||
title: Invalid API | ||
|
||
paths: | ||
/users: | ||
get: | ||
operationId: users | ||
responses: | ||
default: | ||
description: hello world | ||
post: | ||
operationId: users # <---- duplicate | ||
responses: | ||
default: | ||
description: hello world |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters