From 6d088b862b20b5406f0b9b25aa6e061597f134f4 Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Thu, 11 Apr 2024 09:57:43 -0700 Subject: [PATCH 1/2] Update base-metadata.schema.ts --- schemas/base-metadata.schema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schemas/base-metadata.schema.ts b/schemas/base-metadata.schema.ts index 062d1a232..221be7a53 100644 --- a/schemas/base-metadata.schema.ts +++ b/schemas/base-metadata.schema.ts @@ -176,8 +176,8 @@ export const preprocessMetadataSchema = (schema: any = baseMetadataSchema, globa if (ophys) { - ophys.required = Object.keys(ophys.properties) - + ophys.required = Object.keys(ophys.properties).filter(prop => prop !== 'definitions') + const getProp = (name: string) => ophys.properties[name] const tpsItemSchema = getProp("TwoPhotonSeries")?.items From 70d610cc9b9653c56b6c415490981dfedfa9cacb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 11 Apr 2024 16:58:48 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- schemas/base-metadata.schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/base-metadata.schema.ts b/schemas/base-metadata.schema.ts index 221be7a53..419ca5a40 100644 --- a/schemas/base-metadata.schema.ts +++ b/schemas/base-metadata.schema.ts @@ -177,7 +177,7 @@ export const preprocessMetadataSchema = (schema: any = baseMetadataSchema, globa if (ophys) { ophys.required = Object.keys(ophys.properties).filter(prop => prop !== 'definitions') - + const getProp = (name: string) => ophys.properties[name] const tpsItemSchema = getProp("TwoPhotonSeries")?.items