From aa456ff998dde3ce3d33a9a24d4377c8300f08c2 Mon Sep 17 00:00:00 2001 From: Simon Billinge Date: Sun, 24 Mar 2024 18:32:13 -0400 Subject: [PATCH] passing validation test now with highlight in grants --- regolith/commands.py | 4 ++-- regolith/schemas.json | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/regolith/commands.py b/regolith/commands.py index 8374b89fd..5b099f3fd 100644 --- a/regolith/commands.py +++ b/regolith/commands.py @@ -266,8 +266,8 @@ def validate(rc): else: # uncomment when debugging scheme errors # - # sys.exit(f"Validation failed on some records\n {cap}") - sys.exit(f"Validation failed on some records") + sys.exit(f"Validation failed on some records\n {cap}") + # sys.exit(f"Validation failed on some records") DISCONNECTED_COMMANDS = { "rc": lambda rc: print(rc._pformat()), diff --git a/regolith/schemas.json b/regolith/schemas.json index 969aaff15..186eead81 100644 --- a/regolith/schemas.json +++ b/regolith/schemas.json @@ -735,6 +735,22 @@ "required": false, "type": "string" }, + "highlights": { + "description": "lists of highlights from the project", + "required": false, + "type": "list", + "schema": { + "schema": { + "year": {"required": false, "type": "integer"}, + "month": {"required": false, "type": "integer"}, + "description": { + "required": false, + "type": "string" + } + }, + "type": "dict" + } + }, "institution": { "description": "the host institution for the grant", "type": "string",