fix: correct more details in templates/apply API (#159)
This commit is contained in:
@ -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:
|
||||
|
@ -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]
|
||||
|
@ -8,4 +8,4 @@ properties:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./TemplateEnvReference.yml"
|
||||
required: [kind, tempateMetaName, envReferences]
|
||||
required: [kind, templateMetaName, envReferences]
|
||||
|
@ -19,7 +19,7 @@ properties:
|
||||
labelMappings:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./TemplateSummaryLabelMapping.yml"
|
||||
$ref: "./TemplateSummaryDiffLabelMapping.yml"
|
||||
notificationEndpoints:
|
||||
type: array
|
||||
items:
|
||||
|
@ -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]
|
||||
|
@ -0,0 +1,7 @@
|
||||
allOf:
|
||||
- $ref: "./TemplateSummaryLabelMapping.yml"
|
||||
- type: object
|
||||
properties:
|
||||
stateStatus:
|
||||
type: string
|
||||
required: [stateStatus]
|
@ -6,4 +6,4 @@ properties:
|
||||
type: string
|
||||
args:
|
||||
$ref: "./TemplateSummaryVariableArgs.yml"
|
||||
required: [name, args]
|
||||
required: [name]
|
||||
|
@ -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]
|
||||
|
@ -1,9 +1,7 @@
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
format: int64
|
||||
x-go-field-type: uint64
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
description:
|
||||
|
@ -12,4 +12,4 @@ allOf:
|
||||
type: string
|
||||
arguments:
|
||||
$ref: "./TemplateSummaryVariableArgs.yml"
|
||||
required: [id, name, arguments]
|
||||
required: [id, name]
|
||||
|
@ -2,5 +2,6 @@ type: object
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
required: [type]
|
||||
additionalProperties: true
|
||||
values:
|
||||
x-go-field-type: 'interface{}'
|
||||
required: [type, values]
|
||||
|
Reference in New Issue
Block a user