From 4307dc7ad3e8f054a3461d4a65f55e216201826f Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Wed, 8 Apr 2020 12:37:45 -0700 Subject: [PATCH] Update schema and docs to describe name as optional Fixes: #316 --- docs/schema.md | 4 +++- src/schema/tye-schema.json | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/schema.md b/docs/schema.md index 16e50982..988912fb 100644 --- a/docs/schema.md +++ b/docs/schema.md @@ -51,10 +51,12 @@ services: ### Root Properties -#### `name` (string) *required* +#### `name` (string) Configures the name of the application. This will appear in some Kubernetes labels right now, but not many other places. +If the name name is not specified, then the lowercased directory name containing the `tye.yaml` file will be used as the default. + #### `registry` (string) Allows storing the name of the container registry in configuration. This is used when building and deploying images for two purposes: diff --git a/src/schema/tye-schema.json b/src/schema/tye-schema.json index 22a64d40..ca152bf6 100644 --- a/src/schema/tye-schema.json +++ b/src/schema/tye-schema.json @@ -37,7 +37,6 @@ } }, "required": [ - "name", "services" ], "definitions": {