-
Notifications
You must be signed in to change notification settings - Fork 3
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
Comments
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? |
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. |
The issue is visible in demo 5555531082044. Try removing the default_value
field for each of the two parameters and running the demo.
This produces two different issues, but in each case it could be fixed if
we had an error when saving the ddl (because the specified parameters
without default_value are not valid for the system).
|
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. |
It seems the natural solution is to validate the JSON with the DDL's schema. |
The "selection_radio" property is mandatory in the DDL, but the system doesn't reject a DDL which doesn't have one.
The text was updated successfully, but these errors were encountered: