From a75a1bb832bc2e7b1cdd9034a782ed1a997dcc89 Mon Sep 17 00:00:00 2001 From: Aric Gardner Date: Thu, 28 May 2020 14:02:22 -0400 Subject: [PATCH] Modify info-schema make email and timezone optional. Email if entered must be vaild, but is not required Timezone if entered must be match regex, but is not required Signed-off-by: Aric Gardner Change-Id: I1266c43edabed7fdb3882b8fc335bd8b3942699c --- schema/info-schema.yaml | 4 ++-- schema/releasenotes/notes/info-schema-76226f19ef070886.yaml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 schema/releasenotes/notes/info-schema-76226f19ef070886.yaml diff --git a/schema/info-schema.yaml b/schema/info-schema.yaml index 55f99b58..5bf7fc3d 100644 --- a/schema/info-schema.yaml +++ b/schema/info-schema.yaml @@ -53,14 +53,14 @@ properties: name: type: "string" email: - type: "string" + required: false format: "email" id: type: "string" company: type: "string" timezone: - type: "string" + required: false pattern: '([A-Z][a-z]*\s*)+\/([A-Za-z_-])+' additionalProperties: false primary_contact: *user_object diff --git a/schema/releasenotes/notes/info-schema-76226f19ef070886.yaml b/schema/releasenotes/notes/info-schema-76226f19ef070886.yaml new file mode 100644 index 00000000..57a4df3b --- /dev/null +++ b/schema/releasenotes/notes/info-schema-76226f19ef070886.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Due to privacy concerns Email and Timezone in the INFO.yaml schema check + are now optional -- 2.16.6