Skip to content

Commit

Permalink
added tests for security definition type validation
Browse files Browse the repository at this point in the history
  • Loading branch information
afaiq committed Jun 26, 2023
1 parent 46705ba commit e2f8c7d
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
pass:
- "pass1.yaml"
- "pass1.json"
- "pass2.yaml"
- "pass2.json"
fail:
- "fail1.json"
- "fail1.yaml"
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"swagger": "2.0",
"info": {
"title": "Simple API Overview",
"version": "1.0.0"
},
"paths": {
"/": {
"get": {
"operationId": "listVersionsv2",
"summary": "List API versions",
"security": [
{
"some_auth": []
}
],
"responses": {
"200": {
"description": "Success"
}
}
}
}
},
"securityDefinitions": {
"some_auth": {
"type": "apiKey"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
swagger: "2.0"
info:
title: Simple API Overview
version: 1.0.0
paths:
/:
get:
operationId: listVersionsv2
summary: List API versions
security:
- some_auth: []
responses:
"200":
description: Success
securityDefinitions:
some_auth:
type: apiKey

0 comments on commit e2f8c7d

Please sign in to comment.