fix: correct more details in templates/apply API (#159)

This commit is contained in:
Daniel Moran
2021-06-29 15:08:36 -04:00
committed by GitHub
parent eb99827966
commit 69dedbcaa9
32 changed files with 884 additions and 348 deletions

View File

@ -351,6 +351,8 @@ components:
$ref: "./overrides/schemas/TemplateSummaryDiffLabel.yml"
TemplateSummaryDiffLabelFields:
$ref: "./overrides/schemas/TemplateSummaryDiffLabelFields.yml"
TemplateSummaryDiffLabelMapping:
$ref: "./overrides/schemas/TemplateSummaryDiffLabelMapping.yml"
TemplateSummaryDiffNotificationEndpoint:
$ref: "./overrides/schemas/TemplateSummaryDiffNotificationEndpoint.yml"
TemplateSummaryDiffNotificationEndpointFields:

View File

@ -12,6 +12,7 @@ allOf:
type: string
retentionPeriod:
type: integer
format: int64
schemaType:
type: string
$ref: "../../openapi/src/common/schemas/SchemaType.yml"
required: [id, name, retentionPeriod]

View File

@ -8,4 +8,4 @@ properties:
type: array
items:
$ref: "./TemplateEnvReference.yml"
required: [kind, tempateMetaName, envReferences]
required: [kind, templateMetaName, envReferences]

View File

@ -19,7 +19,7 @@ properties:
labelMappings:
type: array
items:
$ref: "./TemplateSummaryLabelMapping.yml"
$ref: "./TemplateSummaryDiffLabelMapping.yml"
notificationEndpoints:
type: array
items:

View File

@ -6,4 +6,10 @@ properties:
type: string
retentionRules:
$ref: "../../openapi/src/common/schemas/RetentionRules.yml"
required: [name, retentionRules]
schemaType:
$ref: "../../openapi/src/common/schemas/SchemaType.yml"
measurementSchemas:
type: array
items:
type: object
required: [name, retentionRules, measurementSchemas]

View File

@ -0,0 +1,7 @@
allOf:
- $ref: "./TemplateSummaryLabelMapping.yml"
- type: object
properties:
stateStatus:
type: string
required: [stateStatus]

View File

@ -6,4 +6,4 @@ properties:
type: string
args:
$ref: "./TemplateSummaryVariableArgs.yml"
required: [name, args]
required: [name]

View File

@ -2,6 +2,10 @@ allOf:
- $ref: "./TemplateSummaryCommon.yml"
- type: object
properties:
id:
type: integer
format: int64
x-go-field-type: uint64
name:
type: string
description:
@ -18,4 +22,4 @@ allOf:
type: string
offset:
type: string
required: [name, endpointTemplateMetaName, endpointID, endpointType, every, offset]
required: [id, name, endpointTemplateMetaName, endpointID, endpointType, every, offset]

View File

@ -1,9 +1,7 @@
type: object
properties:
id:
type: integer
format: int64
x-go-field-type: uint64
type: string
name:
type: string
description:

View File

@ -12,4 +12,4 @@ allOf:
type: string
arguments:
$ref: "./TemplateSummaryVariableArgs.yml"
required: [id, name, arguments]
required: [id, name]

View File

@ -2,5 +2,6 @@ type: object
properties:
type:
type: string
required: [type]
additionalProperties: true
values:
x-go-field-type: 'interface{}'
required: [type, values]