Skip to content

Commit

Permalink
schema: add tmpfs.mode field
Browse files Browse the repository at this point in the history
Schema included `size` for `tmpfs` mounts but not `mode`. This
appears to have been an oversight.

Fixes #302.

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
  • Loading branch information
milas committed Nov 30, 2022
1 parent 999ce24 commit 29304bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions schema/compose-spec.json
Expand Up @@ -406,6 +406,9 @@
{"type": "integer", "minimum": 0},
{"type": "string"}
]
},
"mode": {
"type": "number"
}
},
"additionalProperties": false,
Expand Down
2 changes: 2 additions & 0 deletions types/types.go
Expand Up @@ -828,6 +828,8 @@ type ServiceVolumeVolume struct {
type ServiceVolumeTmpfs struct {
Size UnitBytes `yaml:",omitempty" json:"size,omitempty"`

Mode uint32 `yaml:",omitempty" json:"mode,omitempty"`

Extensions map[string]interface{} `yaml:",inline" json:"-"`
}

Expand Down

0 comments on commit 29304bf

Please sign in to comment.