Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move award validation into dandi-schema #1921

Open
yarikoptic opened this issue Apr 15, 2024 · 0 comments
Open

Move award validation into dandi-schema #1921

yarikoptic opened this issue Apr 15, 2024 · 0 comments

Comments

@yarikoptic
Copy link
Member

ATM it is hardcoded in
https://github.com/dandi/dandi-archive/blob/HEAD/web/src/views/CreateDandisetView/CreateDandisetView.vue#L152

const NIH_AWARD_REGEX = /^\d \w+ \w{2} \d{6}-\d{2}([A|S|X|P]\d)?$/;

while metadata validation should be centralized AFAIK to dandi-schema.

We should think though on as convenient way how to channel to the user target desired entry syntax as we do now with

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant