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

Generate JSON Schema- Survey Model #5544

Closed
nehemiah-tzur opened this issue Jan 22, 2023 · 3 comments
Closed

Generate JSON Schema- Survey Model #5544

nehemiah-tzur opened this issue Jan 22, 2023 · 3 comments
Assignees
Milestone

Comments

@nehemiah-tzur
Copy link

Are you requesting a feature, reporting a bug or asking a question?

Feature request

What is the current behavior?

There is no way to currently get the JSON schema for a survey,

What is the expected behavior?

It would be nice if there was a method for generating a JSON schema for a survey model. This way you can validate schema's on the backend that might have been tampered with.

How would you reproduce the current behavior (if this is a bug)?

n/a.

Provide the test code and the tested page URL (if applicable)

Tested page URL:

none

Test code

Specify your

  • browser: any
  • browser version: any
  • surveyjs platform (angular or react or jquery or knockout or vue): React
  • surveyjs version: any
    any
@andrewtelnov
Copy link
Member

@nehemiah-tzur In fact, we have this code. I will include JSON scheme generation together with our docs documentation.

Thank you,
Andrew

@andrewtelnov andrewtelnov self-assigned this Jan 22, 2023
@andrewtelnov andrewtelnov changed the title JSON Schema- Survey Model - Feature Request Generate JSON Schema- Survey Model Jan 22, 2023
@nehemiah-tzur
Copy link
Author

I actually meant a JSON schema for the results not the survey code.

@andrewtelnov
Copy link
Member

@nehemiah-tzur Here is the doc for it.

Thank you,
Andrew

@OlgaLarina OlgaLarina added this to the v1.9.70 milestone Jan 26, 2023
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