refactor: remove resource-type enums from export
commands (#137)
This commit is contained in:
@ -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:
|
||||
|
3
api/contract/overrides/schemas/Template.yml
Normal file
3
api/contract/overrides/schemas/Template.yml
Normal file
@ -0,0 +1,3 @@
|
||||
type: array
|
||||
items:
|
||||
$ref: "./TemplateEntry.yml"
|
13
api/contract/overrides/schemas/TemplateEntry.yml
Normal file
13
api/contract/overrides/schemas/TemplateEntry.yml
Normal file
@ -0,0 +1,13 @@
|
||||
type: object
|
||||
properties:
|
||||
apiVersion:
|
||||
type: string
|
||||
kind:
|
||||
type: string
|
||||
meta:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
spec:
|
||||
type: object
|
@ -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]
|
||||
|
Reference in New Issue
Block a user