diff --git a/docs/schema/generated/jsonschema/types/AppConfigV1.schema.json b/docs/schema/generated/jsonschema/types/AppConfigV1.schema.json index 0272f17fe74..95a99660e51 100644 --- a/docs/schema/generated/jsonschema/types/AppConfigV1.schema.json +++ b/docs/schema/generated/jsonschema/types/AppConfigV1.schema.json @@ -51,6 +51,13 @@ "type": "string" } }, + "enable_email": { + "description": "Associate an email account with the app", + "type": [ + "boolean", + "null" + ] + }, "env": { "description": "Environment variables.", "type": "object", diff --git a/lib/cli/src/commands/app/create.rs b/lib/cli/src/commands/app/create.rs index 1107c9c3a4d..28ba423f4d3 100644 --- a/lib/cli/src/commands/app/create.rs +++ b/lib/cli/src/commands/app/create.rs @@ -147,8 +147,9 @@ impl CmdAppCreate { scaling: None, locality: None, redirect: None, - extra: IndexMap::new(), jobs: None, + enable_email: None, + extra: IndexMap::new(), } } diff --git a/lib/config/src/app/mod.rs b/lib/config/src/app/mod.rs index a01b5d9eee5..f99bc36477e 100644 --- a/lib/config/src/app/mod.rs +++ b/lib/config/src/app/mod.rs @@ -97,6 +97,10 @@ pub struct AppConfigV1 { #[serde(skip_serializing_if = "Option::is_none")] pub jobs: Option>, + /// Associate an email account with the app + #[serde(default, skip_serializing_if = "Option::is_none")] + pub enable_email: Option, + /// Capture extra fields for forwards compatibility. #[serde(flatten)] pub extra: IndexMap, @@ -393,6 +397,7 @@ scheduled_tasks: regions: vec!["eu-rome".to_string()] }), jobs: None, + enable_email: None, } ); }