Skip to content

Commit

Permalink
Fixes spec
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Aug 8, 2024
1 parent aa3f2f3 commit a92aa5b
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 74 deletions.
70 changes: 35 additions & 35 deletions spec/namespaces/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ paths:
'200':
$ref: '#/components/responses/security.delete_distinguished_name@200'
'400':
$ref: '#/components/responses/security.get_distinguished_name@400'
$ref: '#/components/responses/security.delete_distinguished_name@400'
'403':
$ref: '#/components/responses/security.delete_distinguished_name@403'
/_plugins/_security/api/permissionsinfo:
Expand Down Expand Up @@ -1395,8 +1395,8 @@ components:
security.create_tenant@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.create_update_tenancy_config@200:
content:
application/json:
Expand All @@ -1405,8 +1405,8 @@ components:
security.create_update_tenancy_config@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.create_user@200:
content:
application/json:
Expand Down Expand Up @@ -1460,8 +1460,8 @@ components:
security.delete_tenant@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.delete_user@200:
content:
application/json:
Expand All @@ -1487,8 +1487,8 @@ components:
text/plain:
type: string
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.generate_user_token@200:
content:
application/json:
Expand All @@ -1497,8 +1497,8 @@ components:
security.generate_user_token@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.generate_user_token_legacy@200:
content:
application/json:
Expand All @@ -1507,8 +1507,8 @@ components:
security.generate_user_token_legacy@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.get_account_details@200:
content:
application/json:
Expand Down Expand Up @@ -1575,8 +1575,8 @@ components:
security.get_certificates@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.get_certificates@403:
content:
application/json:
Expand Down Expand Up @@ -1688,8 +1688,8 @@ components:
security.get_tenancy_config@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.get_tenants@200:
content:
application/json:
Expand All @@ -1698,8 +1698,8 @@ components:
security.get_tenants@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.get_user@200:
content:
application/json:
Expand Down Expand Up @@ -1808,8 +1808,8 @@ components:
security.patch_role@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.patch_role_mapping@200:
content:
application/json:
Expand All @@ -1818,8 +1818,8 @@ components:
security.patch_role_mapping@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.patch_role_mappings@200:
content:
application/json:
Expand All @@ -1828,8 +1828,8 @@ components:
security.patch_role_mappings@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.patch_roles@200:
content:
application/json:
Expand All @@ -1838,8 +1838,8 @@ components:
security.patch_roles@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.patch_tenant@200:
content:
application/json:
Expand All @@ -1848,8 +1848,8 @@ components:
security.patch_tenant@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.patch_tenants@200:
content:
application/json:
Expand All @@ -1858,8 +1858,8 @@ components:
security.patch_tenants@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.patch_user@200:
content:
application/json:
Expand Down Expand Up @@ -1888,8 +1888,8 @@ components:
security.reload_http_certificates@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.reload_http_certificates@403:
content:
application/json:
Expand All @@ -1903,8 +1903,8 @@ components:
security.reload_transport_certificates@400:
content:
application/json:
schema:
$ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
schema: null
# $ref: '../schemas/security._common.yaml#/components/schemas/BadRequest'
security.reload_transport_certificates@403:
content:
application/json:
Expand Down
67 changes: 28 additions & 39 deletions spec/schemas/security._common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,6 @@ components:
$ref: '#/components/schemas/ActionGroup'

AllowListConfig:
type: object
properties:
# config:
# $ref: '#/components/schemas/AllowConfig'
enabled:
type: boolean
requests:
type: object
description: An object with APIs as key and array of http methods as values.

AllowConfig:
type: object
properties:
enabled:
Expand Down Expand Up @@ -189,16 +178,16 @@ components:
type: string
description: Size of backend roles in bytes.

BadRequest:
type: object
properties:
status:
type: string
enum:
- 400
message:
type: string
description: Message returned as part of BAD_REQUEST response.
# BadRequest:
# type: object
# properties:
# status:
# type: string
# enum:
# - 400
# message:
# type: string
# description: Message returned as part of BAD_REQUEST response.

CertificateCountPerNode:
type: object
Expand Down Expand Up @@ -431,14 +420,14 @@ components:
on_behalf_of:
type: object

Forbidden:
type: object
properties:
status:
type: [number, string]
message:
type: string
description: Message returned as part of Forbidden response.
# Forbidden:
# type: object
# properties:
# status:
# type: string
# message:
# type: string
# description: Message returned as part of Forbidden response.

GenerateOBOToken:
type: object
Expand Down Expand Up @@ -492,16 +481,16 @@ components:
type: string
description: Error message during request execution.

MethodNotImplemented:
type: object
properties:
status:
type: string
enum:
- 501
message:
type: string
description: Message returned as part of NOT_IMPLEMENTED response.
# MethodNotImplemented:
# type: object
# properties:
# status:
# type: string
# enum:
# - 501
# message:
# type: string
# description: Message returned as part of NOT_IMPLEMENTED response.

MultiTenancyConfig:
type: object
Expand Down

0 comments on commit a92aa5b

Please sign in to comment.