SchemaConfiguration should be scoped within the namespace enum for embeddedInTarget
module type
#3360
Labels
codegen
Issues related to or arising from code generation
enhancement
Issues outlining new things we want to do or things that will make our lives as devs easier
low-priority
Milestone
Related to #3357.
Bug
Below is an example
SchemaConfiguration
type that is generated when theembeddedInTarget
schema module output type is used:All other types generated are enclosed within a caseless enum that is used as a scoping namespace.
SchemaConfiguration
should be scoped within that enum too to be generated like this:Considerations
SchemaConfiguration.swift
is one of the files that does not get overwritten once it already exists. This should not be a problem because current compilation is unaffected by this bug.SchemaConfiguration
type isSchemaMetadata
which is already generated within the enum namespace. This change will make it clearer for the compiler whichSchemaConfiguration
is being referenced without needing to use the fully qualified namespace.SchemaMetadata
to use the fully qualified namespace would be a breaking change because that type may not exist in previously generated schema modules. So do not do this as part of this work.The text was updated successfully, but these errors were encountered: