Skip to content

fix(gen): RUM dashboards and nullable unions; sync OpenAPI spec - #113

Merged
ysyneu merged 2 commits into
mainfrom
fix/generator-rum-dashboards-nullable-unions
Nov 1, 2026
Merged

ysyneu merged 2 commits into
mainfrom
fix/generator-rum-dashboards-nullable-unions

Conversation

@ysyneu

@ysyneu ysyneu commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

Supersedes #103, which does not compile.

Generator

  • RUM/Dashboards and Monitors/Dashboards both generated Dashboards. RUM is now RumDashboards; client.Dashboards stays Monitors. A collision now fails generation.
  • oneOf/anyOf of a schema and null generated any; it now generates a pointer, the same as a nullable $ref.
  • A field typed differently across oneOf arms now generates any, so every arm decodes.

Spec

Synced from flashduty-docs main. Adds RumDashboards and the alert email, enrichment and pipeline previews.

Breaking

Release as a minor bump.

  • Inline request types are replaced by shared models: FilterGroup, TimeFilter, OnceTimeFilter, EscalateLayer, Group, Flapping.
  • Nullable fields are pointers: ScheduleItem.CurOncall/NextOncall/Notify, ScheduleByPersonResponse.Current/Next, GetRemoteConfigResponse.Config, ScheduleCalculatedSchedule.Group.
  • Fields no longer in the spec are removed, including EscalateRuleItem.ChannelName and PreviewTemplateResponse.FixedFields.

- RUM/Dashboards and Monitors/Dashboards both produced a Dashboards service,
  which does not compile. RUM becomes RumDashboards, and a name collision now
  fails generation.
- oneOf/anyOf of a schema and null emitted any. It now generates the same
  pointer as a nullable $ref.
- A field typed differently across oneOf arms took the last arm's type, which
  fails to decode the others. It now generates any.
Adds client.RumDashboards, alert email, enrichment and pipeline previews.

Breaking: request types with inline duplicates now use the shared models
(FilterGroup, TimeFilter, EscalateLayer, Group, Flapping), and nullable fields
such as ScheduleItem.CurOncall are pointers.
@ysyneu
ysyneu merged commit 82cb6dd into main Nov 1, 2026
4 checks passed
@ysyneu
ysyneu deleted the fix/generator-rum-dashboards-nullable-unions branch November 1, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant