goxiaoy / flutter_survey_js

Flutter client library for parsing and display surveyjs.io survey
https://goxiaoy.github.io/flutter_survey_js/
MIT License
17 stars 18 forks source link

Updating surveyjs.json #127

Open karpy47 opened 9 months ago

karpy47 commented 9 months ago

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 commented 9 months ago

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 :cry:

Is this repo actively developed?

Depends on my free time. Contribution is welecomed