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

Incomplete verification of mandatory DDL properties #117

Open
mcolom opened this issue Apr 8, 2022 · 6 comments
Open

Incomplete verification of mandatory DDL properties #117

mcolom opened this issue Apr 8, 2022 · 6 comments
Assignees

Comments

@mcolom
Copy link
Member

mcolom commented Apr 8, 2022

The "selection_radio" property is mandatory in the DDL, but the system doesn't reject a DDL which doesn't have one.

@hmaciasc hmaciasc self-assigned this Apr 11, 2022
@hmaciasc
Copy link
Collaborator

I need more information in order to fix this. A demo can have no parameters at all and parameters don't have optional or required specification. CP checks that the DDL is valid JSON as far as I know.

Could you provide more information on this bug so that I can understand what is broken?

@mcolom
Copy link
Member Author

mcolom commented Apr 12, 2022

If I recall well, the problem is that the DDL's doc says that the selection_radio property is not mandatory.
But it seems that clearly it should be, since if you don't add it the interface has a weird behavior.
@kidanger @tinankh could you provide more info about that?

@hmaciasc
Copy link
Collaborator

I might be missing something but "selection_radio" is just the type of parameter which is required in every parameter. But having a parameter of type "selection_radio" is not required in any case and there are demos working correctly without one as far as I know.
I will wait for further information on how to reproduce the bug.

@kidanger
Copy link
Member

kidanger commented Apr 12, 2022 via email

@hmaciasc
Copy link
Collaborator

Both of those parameters need default_value. It is specified in the doc as a required property in the DDL. I will try and see what could be done in the case of not having default_value in the DDL but in any case it should always be there.

@mcolom
Copy link
Member Author

mcolom commented Apr 12, 2022

It seems the natural solution is to validate the JSON with the DDL's schema.
The schema is not ready yet, but contributors are very welcome!

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

No branches or pull requests

3 participants