-
Notifications
You must be signed in to change notification settings - Fork 839
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
JSON Schema contains incorrect property #9373
Comments
Yes, if you look at the panel definition it has a required property However if you go the survey builder and switch to JSON, the page has no type property. (I think it's an artifact of the Serializer) In our application we use Monaco Editor and validate the JSON schema, which is how I discovered this bug: Randomly spotted another error: I don't think |
@SamMousa Page is inherited from Panel, so it doesn't need to have type, like QuestionText doesn't have type, but Question does. Thank you, |
But type is also not a serializable property for page, correct? |
Yes, I think it makes sense to remove it for panel as well. We don't need it for panel as well. |
I removed it by another commit into the same PR. Thank you, |
Describe the bug
Starting in version .16 (works in .15) the JSON generated JSON schema from
const surveySchemas = SurveyCore.Serializer.generateSchema();
incorrectly contains a required
type
propertyPanel
and descendants (likePage
).Steps to reproduce
https://plnkr.co/edit/597fb2fRoToMekq5
Expected behavior
The JSON schema should not have this property.
The text was updated successfully, but these errors were encountered: