diff --git a/web/src/stores/dandiset.ts b/web/src/stores/dandiset.ts index 694ccdc86..edb030561 100644 --- a/web/src/stores/dandiset.ts +++ b/web/src/stores/dandiset.ts @@ -116,6 +116,10 @@ export const useDandisetStore = defineStore('dandiset', { const schema = await RefParser.dereference(res.data); + // TODO: Fix this upstream in the schema + schema['properties']['identifier']['pattern'] = '^DANDI:\\d{6}$' + schema['$defs']['Project']['properties']['wasAssociatedWith']['items']['oneOf'][2]['properties']['identifier']['pattern'] = '^RRID:.*' + this.schema = schema; }, async fetchOwners(identifier: string) {