Stylianos Gakis
02/23/2022, 2:13 PMe: error while writing /Users/stylianosgakis/ProjectsKmm/EmbarkX/shared/build/tmp/kotlin-classes/debug/com/hedvig/giraffe/adapter/EmbarkStoryQuery_ResponseAdapter$Data$EmbarkStory$Passage$EmbarkAddressAutocompleteActionAction$AddressAutocompleteActionData$EmbarkApiGraphQLMutationApi$MutationData$EmbarkAPIGraphQLMultiActionVariableVariable$EmbarkAPIGraphQLGeneratedVariableVariable.class (Permission denied)
and I have no idea what this is, just guessing it may have something to do with the name of the file being this big? Does the error ring any bells?mbonnin
02/23/2022, 2:15 PMflattenModels.set(true)
Stylianos Gakis
02/23/2022, 2:21 PMmbonnin
02/23/2022, 2:22 PMHow come this isn’t the default for response-based code generation?Because everything is flattened there's a high risk of nameclashes so you will have suffixed classes. You can also use aliases to "shorten" some paths if required. It's a tradeoff really
Stylianos Gakis
02/23/2022, 2:26 PMStylianos Gakis
02/23/2022, 2:27 PMmbonnin
02/23/2022, 2:31 PMmbonnin
02/23/2022, 2:32 PMoperationBased
is still the default. responseBased
is a lot more involvedmbonnin
02/23/2022, 2:33 PMmbonnin
02/23/2022, 2:34 PMStylianos Gakis
02/23/2022, 2:37 PMresponseBased
codegen brings to the table.
And oooonce again, thanks so much for helping me out with this one as well! I really do appreciate it!mbonnin
02/23/2022, 2:38 PM