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

Updating surveyjs.json #127

Open
karpy47 opened this issue Feb 6, 2024 · 1 comment
Open

Updating surveyjs.json #127

karpy47 opened this issue Feb 6, 2024 · 1 comment

Comments

@karpy47
Copy link

karpy47 commented Feb 6, 2024

Hello,
Thanks for the effort with this repo so far. Much appreciated!
I did some changes to the surveyjs.json file (added locstring properties) and then tried to generate all files with the openapi-generator (model.sh) and then melos bootstrap in root. However some files do not seem to be updated (like survey_questions_inner.dart) and I now have plenty of imports that are not valid.
It would be helpful with some simple documentation on the basic development flow to potentially make some contributions.
Is this repo actively developed?

@goxiaoy
Copy link
Owner

goxiaoy commented Feb 22, 2024

How to generate the surveyjs.json and model files

Do not modify the surveyjs.json file manually, it's generated by js code
It's kind of tricky because there are lots of things to do to adjust the original schema file into openapi compatible

And survey_questions_inner.dart is ignored by .openapi-generator-ignore because there is a bug in openapi-generator. You can comment .openapi-generator-ignore and test it by yourself

- lib/src/model/survey_questions_inner.dart
+ # lib/src/model/survey_questions_inner.dart

So the whole workflow is :
Generate surveyjs.json by js code -> Generate flutter_survey_js_model by openapi-generator

And every step sucks just like life 😢

Is this repo actively developed?

Depends on my free time. Contribution is welecomed

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

2 participants