This repository has been archived by the owner on Dec 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: disabled but duplicating params (not supported by OpenAPI)
- Loading branch information
Showing
9 changed files
with
194 additions
and
24 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
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
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
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
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
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
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,76 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: DisabledParams | ||
description: Test API for disabled parameters feature | ||
version: 1.0.0 | ||
servers: | ||
- url: https://api.io | ||
paths: | ||
/{section}/users: | ||
get: | ||
tags: | ||
- default | ||
summary: Get list of users | ||
description: Obtain a list of users that fullfill the conditions of the filters | ||
parameters: | ||
- name: X-My-Header | ||
in: header | ||
schema: | ||
type: string | ||
required: true | ||
description: Custom header | ||
example: hudjilksns78jsijns090 | ||
- name: X-My-Header | ||
in: header | ||
schema: | ||
type: integer | ||
required: true | ||
description: Custom header disabled | ||
example: '1234567890' | ||
- name: X-Other | ||
in: header | ||
schema: | ||
type: string | ||
required: true | ||
description: Another header | ||
example: other | ||
- name: No-description | ||
in: header | ||
schema: | ||
type: string | ||
example: header without description | ||
- name: No-value | ||
in: header | ||
schema: | ||
type: string | ||
description: header without value | ||
- name: X-Disabled-Header | ||
in: header | ||
schema: | ||
type: string | ||
description: Disabled parameter | ||
example: QWERTY | ||
- name: name | ||
in: query | ||
schema: | ||
type: string | ||
description: Filter by name | ||
example: Jhon | ||
- name: review | ||
in: query | ||
schema: | ||
type: boolean | ||
description: Indicate if should be reviewed or not | ||
example: 'true' | ||
- name: section | ||
in: path | ||
schema: | ||
type: string | ||
required: true | ||
description: A path parameter | ||
example: spain | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: {} |
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,75 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: DisabledParams | ||
description: Test API for disabled parameters feature | ||
version: 1.0.0 | ||
servers: | ||
- url: https://api.io | ||
paths: | ||
/{section}/users: | ||
get: | ||
tags: | ||
- default | ||
summary: Get list of users | ||
description: Obtain a list of users that fullfill the conditions of the filters | ||
parameters: | ||
- name: X-My-Header | ||
in: header | ||
schema: | ||
type: string | ||
required: true | ||
description: Custom header | ||
example: hudjilksns78jsijns090 | ||
- name: X-Other | ||
in: header | ||
schema: | ||
type: string | ||
required: true | ||
description: Another header | ||
example: other | ||
- name: No-description | ||
in: header | ||
schema: | ||
type: string | ||
example: header without description | ||
- name: No-value | ||
in: header | ||
schema: | ||
type: string | ||
description: header without value | ||
- name: age | ||
in: query | ||
schema: | ||
type: integer | ||
description: Disabled param | ||
example: '45' | ||
- name: name | ||
in: query | ||
schema: | ||
type: string | ||
description: Filter by name | ||
example: Jhon | ||
- name: review | ||
in: query | ||
schema: | ||
type: boolean | ||
description: Indicate if should be reviewed or not | ||
example: 'true' | ||
- name: name | ||
in: query | ||
schema: | ||
type: string | ||
description: Disabled param duplicated | ||
example: Mark | ||
- name: section | ||
in: path | ||
schema: | ||
type: string | ||
required: true | ||
description: A path parameter | ||
example: spain | ||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: {} |
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