From accf4aab7ba260d36c1e97168cec77541be8d39a Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Tue, 7 Nov 2023 13:56:01 +0100 Subject: [PATCH] add support for inline config Signed-off-by: Nicolas De Loof --- schema/compose-spec.json | 2 ++ types/types.go | 1 + 2 files changed, 3 insertions(+) diff --git a/schema/compose-spec.json b/schema/compose-spec.json index d4bff384..463d6822 100644 --- a/schema/compose-spec.json +++ b/schema/compose-spec.json @@ -764,6 +764,8 @@ "type": "object", "properties": { "name": {"type": "string"}, + "content": {"type": "string"}, + "environment": {"type": "string"}, "file": {"type": "string"}, "external": { "type": ["boolean", "object"], diff --git a/types/types.go b/types/types.go index 0407462a..770748ba 100644 --- a/types/types.go +++ b/types/types.go @@ -891,6 +891,7 @@ type FileObjectConfig struct { Name string `yaml:"name,omitempty" json:"name,omitempty"` File string `yaml:"file,omitempty" json:"file,omitempty"` Environment string `yaml:"environment,omitempty" json:"environment,omitempty"` + Content string `yaml:"content,omitempty" json:"content,omitempty"` External External `yaml:"external,omitempty" json:"external,omitempty"` Labels Labels `yaml:"labels,omitempty" json:"labels,omitempty"` Driver string `yaml:"driver,omitempty" json:"driver,omitempty"`