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

"required" when something else is missing #1045

Open
woutdenolf opened this issue Apr 8, 2022 · 0 comments
Open

"required" when something else is missing #1045

woutdenolf opened this issue Apr 8, 2022 · 0 comments

Comments

@woutdenolf
Copy link
Contributor

woutdenolf commented Apr 8, 2022

I'm in the process of defining a contribution and I bump into this problem:

scattering_angle[nPeaks]: (optional) [NX_NUMBER]
energy[nPeaks]: (optional) [NX_NUMBER]
momentum_transfer[nPeaks]: (optional) [NX_NUMBER]

I defined them all as optional but this is not what I want. I want to define that at least one of those three fields needs to be present.

Is there a way to do this so that nxvalidate picks it up?

@woutdenolf woutdenolf changed the title "required" when somthing else is missing "required" when something else is missing Apr 26, 2022
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