From d3678cc5643d1cc19ca4c4fe7baa9f5c4d32429d Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Mon, 20 May 2019 20:34:28 +0200 Subject: [PATCH] Remove required flag from slug param (compose namespaces) --- api/compose/spec.json | 4 ++-- api/compose/spec/namespace.json | 4 ++-- docs/compose/README.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/compose/spec.json b/api/compose/spec.json index 7c47b5482..01799ec78 100644 --- a/api/compose/spec.json +++ b/api/compose/spec.json @@ -58,7 +58,7 @@ { "type": "string", "name": "slug", - "required": true, + "required": false, "title": "Slug (url path part)" }, { @@ -116,7 +116,7 @@ { "type": "string", "name": "slug", - "required": true, + "required": false, "title": "Slug (url path part)" }, { diff --git a/api/compose/spec/namespace.json b/api/compose/spec/namespace.json index 8d830f702..93bdf68cf 100644 --- a/api/compose/spec/namespace.json +++ b/api/compose/spec/namespace.json @@ -57,7 +57,7 @@ }, { "name": "slug", - "required": true, + "required": false, "title": "Slug (url path part)", "type": "string" }, @@ -115,7 +115,7 @@ }, { "name": "slug", - "required": true, + "required": false, "title": "Slug (url path part)", "type": "string" }, diff --git a/docs/compose/README.md b/docs/compose/README.md index 55e50b42e..69365ac20 100644 --- a/docs/compose/README.md +++ b/docs/compose/README.md @@ -346,7 +346,7 @@ Compose module definitions | Parameter | Type | Method | Description | Default | Required? | | --------- | ---- | ------ | ----------- | ------- | --------- | | name | string | POST | Name | N/A | YES | -| slug | string | POST | Slug (url path part) | N/A | YES | +| slug | string | POST | Slug (url path part) | N/A | NO | | enabled | bool | POST | Enabled | N/A | NO | | meta | sqlxTypes.JSONText | POST | Meta data | N/A | YES | @@ -378,7 +378,7 @@ Compose module definitions | --------- | ---- | ------ | ----------- | ------- | --------- | | namespaceID | uint64 | PATH | ID | N/A | YES | | name | string | POST | Name | N/A | YES | -| slug | string | POST | Slug (url path part) | N/A | YES | +| slug | string | POST | Slug (url path part) | N/A | NO | | enabled | bool | POST | Enabled | N/A | NO | | meta | sqlxTypes.JSONText | POST | Meta data | N/A | YES | | updatedAt | *time.Time | POST | Last update (or creation) date | N/A | NO |