-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
pathological naming schemes can create clashing structs #66
Labels
Comments
no one has actually complained about this happening yet, but if it does happen, it can be solved by us inside the Lines 83 to 128 in 561adae
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
suppose you have a struct
endpoints
in the schema with properties:metrics_relabelings
(generatingEndpointsMetricsRelabelings
struct)metrics
(generatingEndpointsMetrics
struct)suppose further that the
metrics
property in the schema has further properties:relabelings
(generatingEndpointsMetricsRelabelings
struct - a second time!)I.e. it is possible to have multiple ways to reach the same struct names, and
kopium
does not handle this (it will emit multiple structs with the same name).Potential workarounds
mod Endpoints { mod Metrics {...
to create a namespace for each struct levelOutputStruct
available when adding another)Leaning towards the latter, even though it will likely just be us suffixing numbers (
EndpointsMetricsRelabelings2
) to the struct and hoping the users do manual disambiguation where possible.The text was updated successfully, but these errors were encountered: