From 8e4c3f535c3c12c1d55db63348856ab43a36de0c Mon Sep 17 00:00:00 2001 From: Danny Brito Date: Thu, 15 Feb 2024 17:30:55 +0000 Subject: [PATCH] update contents field mapping --- docs/spec.schema.json | 6 +++--- spec.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/spec.schema.json b/docs/spec.schema.json index c497d3790..91514cc9d 100644 --- a/docs/spec.schema.json +++ b/docs/spec.schema.json @@ -585,9 +585,9 @@ }, "SourceInlineFile": { "properties": { - "content": { + "contents": { "type": "string", - "description": "Content is the contents." + "description": "Contents is the content." }, "permissions": { "type": "integer", @@ -604,7 +604,7 @@ }, "additionalProperties": false, "type": "object", - "description": "SourceInlineContent is used to specify the content of an inline source." + "description": "SourceInlineFile is used to specify the content of an inline source." }, "SourceMount": { "properties": { diff --git a/spec.go b/spec.go index 61e66c757..40c0310dd 100644 --- a/spec.go +++ b/spec.go @@ -225,10 +225,10 @@ type SourceBuild struct { Args map[string]string `yaml:"args,omitempty" json:"args,omitempty"` } -// SourceInlineContent is used to specify the content of an inline source. +// SourceInlineFile is used to specify the content of an inline source. type SourceInlineFile struct { - // Content is the contents. - Contents string `yaml:"content,omitempty" json:"content,omitempty"` + // Contents is the content. + Contents string `yaml:"contents,omitempty" json:"contents,omitempty"` // Permissions is the octal file permissions to set on the file. Permissions fs.FileMode `yaml:"permissions,omitempty" json:"permissions,omitempty"` // UID is the user ID to set on the directory and all files and directories within it.