-
Notifications
You must be signed in to change notification settings - Fork 175
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
File Already Exists #123
Comments
How to trigger it: |
And this JSON with root class name : {
"error_state": {
"code": 200,
"description": "SUCCESS"
},
"results": {
"predictions": [{
"type": "simple",
"sport": "soccer",
"risk": "safe",
"isFree": true,
"betsets": [{
"bets": [{
"type": "home",
"odds": [{
"label": "H",
"value": 1.34,
"isSuggested": true,
"bookmaker": "betclic"
}, {
"label": "H",
"value": 1.34,
"isSuggested": false,
"bookmaker": "betclic"
}, {
"label": "H",
"value": 1.34,
"isSuggested": false,
"bookmaker": "betclic"
}],
"homeTeam": "PSG",
"awayTeam": "OM",
"league": "Ligue 1",
"game_date": "2019-01-01 14h"
}],
"probability": 75,
"totalOdd": 1.34
}]
}, {
"type": "combine",
"sport": "soccer",
"risk": "safe",
"isFree": false,
"betsets": [{
"bets": [{
"type": "home",
"odds": [{
"label": "H",
"value": 1.21,
"isSuggested": false,
"bookmaker": "betclic"
}, {
"label": "H",
"value": 2.34,
"isSuggested": true,
"bookmaker": "betclic"
}, {
"label": "H",
"value": 3.42,
"isSuggested": false,
"bookmaker": "betclic"
}],
"homeTeam": "Manchester City",
"awayTeam": "Arsenal",
"league": "Ligue 1",
"game_date": "2019-01-01 14h"
}, {
"type": "home",
"odds": [{
"label": "H",
"value": 1.14,
"isSuggested": true,
"bookmaker": "betclic"
}, {
"label": "H",
"value": 3.45,
"isSuggested": false,
"bookmaker": "betclic"
}, {
"label": "H",
"value": 6.5,
"isSuggested": false,
"bookmaker": "betclic"
}],
"homeTeam": "AS Roma",
"awayTeam": "Palerme",
"league": "Ligue 1",
"game_date": "2019-01-01 14h"
}],
"probability": 60,
"totalOdd": 2.67
}]
}, {
"type": "multiple",
"sport": "soccer",
"risk": "risky",
"isFree": false,
"betsets": [{
"bets": [{
"type": "home",
"odds": [{
"label": "H",
"value": 1.34,
"isSuggested": true,
"bookmaker": "betclic"
}, {
"label": "H",
"value": 1.34,
"isSuggested": false,
"bookmaker": "betclic"
}, {
"label": "H",
"value": 1.34,
"isSuggested": false,
"bookmaker": "betclic"
}],
"homeTeam": "PSG",
"awayTeam": "OM",
"league": "Ligue 1",
"game_date": "2019-01-01 14h"
}],
"probability": 60,
"totalOdd": 1.34
}, {
"bets": [{
"type": "home",
"odds": [{
"label": "H",
"value": 1.34,
"isSuggested": true,
"bookmaker": "betclic"
}, {
"label": "H",
"value": 1.34,
"isSuggested": false,
"bookmaker": "betclic"
}, {
"label": "H",
"value": 1.34,
"isSuggested": false,
"bookmaker": "betclic"
}],
"homeTeam": "PSG",
"awayTeam": "OM",
"league": "Ligue 1",
"game_date": "2019-01-01 14h"
}],
"probability": 60,
"totalOdd": 1.34
}]
}],
"affiliates": [{
"partner": "https:\/\/www.top10-sites-paris-sportifs.fr\/wp-content\/uploads\/betclic-tsps.png",
"bonusAmount": 150,
"message": "100\u20ac offerts que le pari soit gagnant ou perdant !",
"link": "http:\/\/google.fr"
}, {
"partner": "https:\/\/www.top10-sites-paris-sportifs.fr\/wp-content\/uploads\/betclic-tsps.png",
"bonusAmount": 150,
"message": "Pariez sans risques",
"link": "http:\/\/google.fr"
}]
}
} |
@wuseal can I take up this one? |
@Karthik2007 Yeah, Of course! That's Great! |
While Looking into the issue, I ran into another bug. Please check. Wrongly referenced Renamed class Steps: Json
Bug: UserX class is generated after renaming but it is not referenced in the Final class structure. |
Thanks for reporting, I've created another issue to track this one, comment under #136 and if you're interested in it, feel free to leave a comment and work on it, thanks |
@Karthik2007 For this issue belonged to the plan miles |
@wuseal Sure. Planning to close this by weekend. Will post an update by tomorrow. |
Fixed in version 3.2.0 |
* Set theme jekyll-theme-cayman * Add acknowledgement to JetBrains * refactored 'settings' to 'advanced' * Fix typo in README.md * fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error * add local.properties to .gitignore * add test * add issue test * Rename test method name in Issue121Test * [Fix] disable gson html escaping to fix format error (#137) * disable html escaping to fix format error * fix typo * add gradle.properties to git ignore * add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test * Fix #139 Folder .jsontokotlin in $HOME (#141) Added additional class to provide cache directory. It used directly, because not approach for IoC presented here. * Change Action tip #135 (#145) Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON" * Fix Issue #123 - File Already exists (#157)
Hey. Thanks for the invitation. I would be happy to be there. |
* Set theme jekyll-theme-cayman * Add acknowledgement to JetBrains * refactored 'settings' to 'advanced' * Fix typo in README.md * fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error * add local.properties to .gitignore * add test * add issue test * Rename test method name in Issue121Test * [Fix] disable gson html escaping to fix format error (#137) * disable html escaping to fix format error * fix typo * add gradle.properties to git ignore * add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test * Fix #139 Folder .jsontokotlin in $HOME (#141) Added additional class to provide cache directory. It used directly, because not approach for IoC presented here. * Change Action tip #135 (#145) Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON" * Fix Issue #123 - File Already exists (#157) * Update changelog
* upgrade version to 3.1.0-EAP * Move adding property Annotation function implement into interceptor. * move init with default value function into interceptor * move isPropertyVar config function into interceptor * move order by alphabetical config function into interceptor * move property nullable or not config function into interceptor * adjust unit test to make it to test pass, now only one still not be pass, will fix later * fix unit test failed case * Fixed issue #119 * Optimize the way to get PsiDirectory * re-optimize the way to get PsiDirectory * Optimize method addProperty * Optimize getPrimitiveType and getArrayType methods * Optimize adjustPropertyNameForGettingArrayChildType method * replace "if statement" with "take if" * Optimize removeDuplicateClassCode method * Simplify "generateSingleDataClassFile" method * Optimize "appendCodeMember" method * re-Optimize "adjustPropertyNameForGettingArrayChildType" method * 3.2.0 optimize/code optimize (#138) * Optimize some recursive methods with "tailrec" * add String.containsAnyOf(List) method * Optimize method couldGetAndReuseClassNameInCurrentEditFileForInsertCode * Optimize http request * make up send data function logic when send failed * 3.2.0 (#151) * Set theme jekyll-theme-cayman * Add acknowledgement to JetBrains * refactored 'settings' to 'advanced' * Fix typo in README.md * fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error * add local.properties to .gitignore * add test * add issue test * Rename test method name in Issue121Test * [Fix] disable gson html escaping to fix format error (#137) * disable html escaping to fix format error * fix typo * add gradle.properties to git ignore * add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test * Fix #139 Folder .jsontokotlin in $HOME (#141) Added additional class to provide cache directory. It used directly, because not approach for IoC presented here. * Change Action tip #135 (#145) Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON" * [GH-108] Generate Kotlin classes from JSON Schema (#126) * support generating class from JsonSchema * Sync * support generating class from JsonSchema * Sync * Remove checking properties order * Add unit test * Support array * Add more UT * Update Kotlin version * Fix UT * Fix UT * Add UT * Reduce stacktrace * Default value * Simpify type name * Default value * Fix CI * fix issue #122:just catch UnSupportJsonException like MakeKotlinClassAction do. (#154) * Polish code and remove deprecated plugin.id (#155) * 3.2.0 (#159) * Set theme jekyll-theme-cayman * Add acknowledgement to JetBrains * refactored 'settings' to 'advanced' * Fix typo in README.md * fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error * add local.properties to .gitignore * add test * add issue test * Rename test method name in Issue121Test * [Fix] disable gson html escaping to fix format error (#137) * disable html escaping to fix format error * fix typo * add gradle.properties to git ignore * add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test * Fix #139 Folder .jsontokotlin in $HOME (#141) Added additional class to provide cache directory. It used directly, because not approach for IoC presented here. * Change Action tip #135 (#145) Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON" * Fix Issue #123 - File Already exists (#157) * Update changelog * Update version
* Set theme jekyll-theme-cayman * Add acknowledgement to JetBrains * refactored 'settings' to 'advanced' * Fix typo in README.md * fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error * add local.properties to .gitignore * add test * add issue test * Rename test method name in Issue121Test * [Fix] disable gson html escaping to fix format error (#137) * disable html escaping to fix format error * fix typo * add gradle.properties to git ignore * add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test * Fix #139 Folder .jsontokotlin in $HOME (#141) Added additional class to provide cache directory. It used directly, because not approach for IoC presented here. * Change Action tip #135 (#145) Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON" * Fix Issue #123 - File Already exists (#157) * 3.2.0 is released, merge it back to master branch (#160) * upgrade version to 3.1.0-EAP * Move adding property Annotation function implement into interceptor. * move init with default value function into interceptor * move isPropertyVar config function into interceptor * move order by alphabetical config function into interceptor * move property nullable or not config function into interceptor * adjust unit test to make it to test pass, now only one still not be pass, will fix later * fix unit test failed case * Fixed issue #119 * Optimize the way to get PsiDirectory * re-optimize the way to get PsiDirectory * Optimize method addProperty * Optimize getPrimitiveType and getArrayType methods * Optimize adjustPropertyNameForGettingArrayChildType method * replace "if statement" with "take if" * Optimize removeDuplicateClassCode method * Simplify "generateSingleDataClassFile" method * Optimize "appendCodeMember" method * re-Optimize "adjustPropertyNameForGettingArrayChildType" method * 3.2.0 optimize/code optimize (#138) * Optimize some recursive methods with "tailrec" * add String.containsAnyOf(List) method * Optimize method couldGetAndReuseClassNameInCurrentEditFileForInsertCode * Optimize http request * make up send data function logic when send failed * 3.2.0 (#151) * Set theme jekyll-theme-cayman * Add acknowledgement to JetBrains * refactored 'settings' to 'advanced' * Fix typo in README.md * fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error * add local.properties to .gitignore * add test * add issue test * Rename test method name in Issue121Test * [Fix] disable gson html escaping to fix format error (#137) * disable html escaping to fix format error * fix typo * add gradle.properties to git ignore * add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test * Fix #139 Folder .jsontokotlin in $HOME (#141) Added additional class to provide cache directory. It used directly, because not approach for IoC presented here. * Change Action tip #135 (#145) Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON" * [GH-108] Generate Kotlin classes from JSON Schema (#126) * support generating class from JsonSchema * Sync * support generating class from JsonSchema * Sync * Remove checking properties order * Add unit test * Support array * Add more UT * Update Kotlin version * Fix UT * Fix UT * Add UT * Reduce stacktrace * Default value * Simpify type name * Default value * Fix CI * fix issue #122:just catch UnSupportJsonException like MakeKotlinClassAction do. (#154) * Polish code and remove deprecated plugin.id (#155) * 3.2.0 (#159) * Set theme jekyll-theme-cayman * Add acknowledgement to JetBrains * refactored 'settings' to 'advanced' * Fix typo in README.md * fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error * add local.properties to .gitignore * add test * add issue test * Rename test method name in Issue121Test * [Fix] disable gson html escaping to fix format error (#137) * disable html escaping to fix format error * fix typo * add gradle.properties to git ignore * add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test * Fix #139 Folder .jsontokotlin in $HOME (#141) Added additional class to provide cache directory. It used directly, because not approach for IoC presented here. * Change Action tip #135 (#145) Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON" * Fix Issue #123 - File Already exists (#157) * Update changelog * Update version
@Karthik2007 |
Thanks @wuseal for the invitation. Happy to be there. I have joined the slack channel. |
* upgrade version to 3.1.0-EAP * Move adding property Annotation function implement into interceptor. * move init with default value function into interceptor * move isPropertyVar config function into interceptor * move order by alphabetical config function into interceptor * move property nullable or not config function into interceptor * adjust unit test to make it to test pass, now only one still not be pass, will fix later * fix unit test failed case * Fixed issue #119 * Optimize the way to get PsiDirectory * re-optimize the way to get PsiDirectory * Optimize method addProperty * Optimize getPrimitiveType and getArrayType methods * Optimize adjustPropertyNameForGettingArrayChildType method * replace "if statement" with "take if" * Optimize removeDuplicateClassCode method * Simplify "generateSingleDataClassFile" method * Optimize "appendCodeMember" method * re-Optimize "adjustPropertyNameForGettingArrayChildType" method * 3.2.0 optimize/code optimize (#138) * Optimize some recursive methods with "tailrec" * add String.containsAnyOf(List) method * Optimize method couldGetAndReuseClassNameInCurrentEditFileForInsertCode * Optimize http request * make up send data function logic when send failed * 3.2.0 (#151) * Set theme jekyll-theme-cayman * Add acknowledgement to JetBrains * refactored 'settings' to 'advanced' * Fix typo in README.md * fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error * add local.properties to .gitignore * add test * add issue test * Rename test method name in Issue121Test * [Fix] disable gson html escaping to fix format error (#137) * disable html escaping to fix format error * fix typo * add gradle.properties to git ignore * add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test * Fix #139 Folder .jsontokotlin in $HOME (#141) Added additional class to provide cache directory. It used directly, because not approach for IoC presented here. * Change Action tip #135 (#145) Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON" * [GH-108] Generate Kotlin classes from JSON Schema (#126) * support generating class from JsonSchema * Sync * support generating class from JsonSchema * Sync * Remove checking properties order * Add unit test * Support array * Add more UT * Update Kotlin version * Fix UT * Fix UT * Add UT * Reduce stacktrace * Default value * Simpify type name * Default value * Fix CI * fix issue #122:just catch UnSupportJsonException like MakeKotlinClassAction do. (#154) * Polish code and remove deprecated plugin.id (#155) * 3.2.0 (#159) * Set theme jekyll-theme-cayman * Add acknowledgement to JetBrains * refactored 'settings' to 'advanced' * Fix typo in README.md * fix JsonArray.onlyHasOneSubArrayAndAllItemsAreObjectElementRecursive logic error * add local.properties to .gitignore * add test * add issue test * Rename test method name in Issue121Test * [Fix] disable gson html escaping to fix format error (#137) * disable html escaping to fix format error * fix typo * add gradle.properties to git ignore * add saveAndReadExceptionInfo unit test and saveAndReadActionInfo unit test * Fix #139 Folder .jsontokotlin in $HOME (#141) Added additional class to provide cache directory. It used directly, because not approach for IoC presented here. * Change Action tip #135 (#145) Changed "Convert Json Into Kotlin Class" to "Kotlin data classes from JSON" * Fix Issue #123 - File Already exists (#157) * Update changelog * Update version
PluginVersion:3.0.1
User Config:
Error Json String:
The text was updated successfully, but these errors were encountered: