Skip to content

Commit

Permalink
update contents field mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBrito authored and cpuguy83 committed Feb 15, 2024
1 parent 7d5b037 commit 8e4c3f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/spec.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -585,9 +585,9 @@
},
"SourceInlineFile": {
"properties": {
"content": {
"contents": {
"type": "string",
"description": "Content is the contents."
"description": "Contents is the content."
},
"permissions": {
"type": "integer",
Expand All @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8e4c3f5

Please sign in to comment.