feat: all-access and operator token from CLI (#285)
* chore: include enum values in openapi generated code * chore: add enum template to list of template overrides * chore: update template and generated code * feat: generate permissions list from openapi spec * feat: all-access and operator token from CLI Closes #22510 * fix: cloud fixed the resources endpoint * fix: all access and operator permissions cannot be composed * fix: review comments from dan-moran
This commit is contained in:
13
api/contract/cli-extras.yml
Normal file
13
api/contract/cli-extras.yml
Normal file
@ -0,0 +1,13 @@
|
||||
openapi: "3.0.0"
|
||||
info:
|
||||
title: Extra configuration to force openapi to generate enum validators
|
||||
version: 2.0.0
|
||||
servers: []
|
||||
paths: {}
|
||||
components:
|
||||
schemas:
|
||||
ResourceEnumOSS:
|
||||
$ref: "./openapi/src/common/schemas/Resource.yml#/properties/type"
|
||||
ResourceEnumCloud:
|
||||
$ref: "./openapi/src/cloud/schemas/Resource.yml#/properties/type"
|
||||
|
||||
@ -63,6 +63,8 @@ paths:
|
||||
$ref: "./overrides/paths/backup_metadata.yml"
|
||||
/backup/shards/{shardID}:
|
||||
$ref: "./openapi/src/oss/paths/backup_shards_shardID.yml"
|
||||
/resources:
|
||||
$ref: "./openapi/src/common/paths/resources.yml"
|
||||
/restore/kv:
|
||||
$ref: "./openapi/src/oss/paths/restore_kv.yml"
|
||||
/restore/sql:
|
||||
|
||||
Reference in New Issue
Block a user