chore: update to API spec for new template endpoint response (#362)

This commit is contained in:
Dane Strandboge
2022-02-17 14:46:05 -06:00
committed by GitHub
parent 041ebf65e3
commit 85a33adf71
12 changed files with 422 additions and 96 deletions

View File

@ -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:

View File

@ -34,7 +34,7 @@ post:
content:
application/json:
schema:
$ref: "../schemas/TemplateSummary.yml"
$ref: "../schemas/TemplateSummaryError.yml"
default:
description: Unexpected error
content:

View File

@ -13,5 +13,5 @@ properties:
errors:
type: array
items:
$ref: "./TemplateSummaryError.yml"
$ref: "./TemplateSummaryErrors.yml"
required: [sources, stackID, summary, diff, errors]

View File

@ -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]

View 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]