refactor: remove resource-type enums from export commands (#137)

This commit is contained in:
Daniel Moran
2021-06-22 09:10:03 -04:00
committed by GitHub
parent 800e4c2cfb
commit a029bf2871
12 changed files with 91 additions and 407 deletions

View File

@ -16,7 +16,7 @@ post:
content:
application/json:
schema:
$ref: "../../openapi/src/common/schemas/Template.yml"
$ref: "../schemas/Template.yml"
default:
description: Unexpected error
content:

View File

@ -0,0 +1,3 @@
type: array
items:
$ref: "./TemplateEntry.yml"

View File

@ -0,0 +1,13 @@
type: object
properties:
apiVersion:
type: string
kind:
type: string
meta:
type: object
properties:
name:
type: string
spec:
type: object

View File

@ -19,7 +19,7 @@ properties:
byResourceKind:
type: array
items:
$ref: "../../openapi/src/common/schemas/TemplateKind.yml"
type: string
resources:
type: array
items:
@ -28,7 +28,7 @@ properties:
id:
type: string
kind:
$ref: "../../openapi/src/common/schemas/TemplateKind.yml"
type: string
name:
type: string
required: [kind]