Naming collision with DocumentType in generated mock code #2719
Labels
bug
Generally incorrect behavior
codegen
Issues related to or arising from code generation
planned-next
Slated to be included in the next release
Milestone
Bug report
This is similar to #2708 but it only concerns mocks, so it seemed worth treating as a separate issue.
I have a enum type
DocumentType
that conflicts withApolloAPI.DocumentType
in generated mock code.Would it be possible to prefix generated types in mocks with the schemaName they're living in to resolve ambiguity?
Versions
Please fill in the versions you're currently using:
apollo-ios
SDK version: 1.0.5Steps to reproduce
To reproduce this you will have to use a scheme that defines
DocumentType
as an enum type.Further details
#2679 seemed to fix this issue for the main generated code, but I'm still experiencing this issue for generated mocks.
If I manually specify the type as coming from my generated package -
GQLTypes
, I can get the mocks compiling successfully:The text was updated successfully, but these errors were encountered: