Skip to content

Follow-up fix for #2185 #2240

Closed as not planned
Closed as not planned

Description

@jamietanna

#2185 appears to cause a regression - rootlyhq/rootly-go#41 is now receiving i.e.

 type Alert struct {
        // AlertFieldValuesAttributes Custom alert field values to create with the alert
-       AlertFieldValuesAttributes []struct {
+       AlertFieldValuesAttributes []*struct {

When using prefers-skip-optional-pointer

Activity

  1. added this to the v2.6.0 milestone on Feb 24, 2026
  2. mromaszewicz commented on Feb 24, 2026

    @mromaszewicz
    Member

    I looked at the rootly OpenAPI spec, and those properties are definitely tagged with nullable: true, so this is expected behavior, and working as intended in this particular change.

    So, I think the "fix" would be to gate this behavior behind an output-option? What do you think? I would actually argue that the new code generated for rootly is correct, because you can now have a nil element in the array versus a zerovalue.

    What do you think?

  3. jamietanna commented on Feb 24, 2026

    @jamietanna
    MemberAuthor

    Ah, yes you're absolutely right - in our case, this does what it should do!

  4. jamietanna commented on Feb 24, 2026

    @jamietanna
    MemberAuthor

    I think it'd be interesting to see - following Friday's release - if we want to add a compatibility option to restore the old behaviour, depending on user feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions