chore: update to API spec for new template endpoint response (#362)
This commit is contained in:
@ -329,6 +329,8 @@ components:
|
||||
$ref: "./overrides/schemas/TemplateSummaryResources.yml"
|
||||
TemplateSummaryError:
|
||||
$ref: "./overrides/schemas/TemplateSummaryError.yml"
|
||||
TemplateSummaryErrors:
|
||||
$ref: "./overrides/schemas/TemplateSummaryErrors.yml"
|
||||
TemplateSummaryBucket:
|
||||
$ref: "./overrides/schemas/TemplateSummaryBucket.yml"
|
||||
TemplateSummaryCheck:
|
||||
|
||||
Submodule api/contract/openapi updated: 3481defece...7500e3006b
@ -34,7 +34,7 @@ post:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "../schemas/TemplateSummary.yml"
|
||||
$ref: "../schemas/TemplateSummaryError.yml"
|
||||
default:
|
||||
description: Unexpected error
|
||||
content:
|
||||
|
||||
@ -13,5 +13,5 @@ properties:
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: "./TemplateSummaryError.yml"
|
||||
$ref: "./TemplateSummaryErrors.yml"
|
||||
required: [sources, stackID, summary, diff, errors]
|
||||
|
||||
@ -1,16 +1,21 @@
|
||||
type: object
|
||||
properties:
|
||||
kind:
|
||||
message:
|
||||
type: string
|
||||
reason:
|
||||
code:
|
||||
type: string
|
||||
fields:
|
||||
sources:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
indexes:
|
||||
stackID:
|
||||
type: string
|
||||
summary:
|
||||
$ref: "./TemplateSummaryResources.yml"
|
||||
diff:
|
||||
$ref: "./TemplateSummaryDiff.yml"
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
type: integer
|
||||
x-go-field-type: '[]*int'
|
||||
required: [kind, reason, fields, indexes]
|
||||
$ref: "./TemplateSummaryErrors.yml"
|
||||
required: [message, code]
|
||||
|
||||
16
api/contract/overrides/schemas/TemplateSummaryErrors.yml
Normal file
16
api/contract/overrides/schemas/TemplateSummaryErrors.yml
Normal file
@ -0,0 +1,16 @@
|
||||
type: object
|
||||
properties:
|
||||
kind:
|
||||
type: string
|
||||
reason:
|
||||
type: string
|
||||
fields:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
indexes:
|
||||
type: array
|
||||
items:
|
||||
type: integer
|
||||
x-go-field-type: '[]*int'
|
||||
required: [kind, reason, fields, indexes]
|
||||
Reference in New Issue
Block a user