Skip to content

Comments

feat: regenerate source code from latest OpenAPI spec#645

Merged
bwoskow-ld merged 7 commits intomainfrom
devin/1771551932-regenerate-openapi
Feb 20, 2026
Merged

feat: regenerate source code from latest OpenAPI spec#645
bwoskow-ld merged 7 commits intomainfrom
devin/1771551932-regenerate-openapi

Conversation

@bwoskow-ld
Copy link
Member

@bwoskow-ld bwoskow-ld commented Feb 20, 2026

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

N/A — regeneration of CLI source code from the latest OpenAPI spec, bringing in new resources and schema changes.

Describe the solution you've provided

Ran make openapi-spec-update to download the latest OpenAPI spec from https://app.launchdarkly.com/api/v2/openapi.json and regenerate cmd/resources/resource_cmds.go.

Three files changed:

  • ld-openapi.json — updated spec (3559 lines changed)
  • cmd/resources/resource_cmds.go — regenerated CLI resource commands (634 lines changed)
  • .pre-commit-config.yaml — added cache-bust comment to force pre-commit environment rebuild for Go 1.26.0 compatibility (1 line added)

Key changes in the spec worth noting:

  • AI Configs graduated from beta: ai-configs-betaai-configs, beta header notice removed from description
  • Release policies expanded: new ProgressiveReleaseConfig, ReleasePolicyStage schemas; GuardedReleaseConfig gained metricKeys, metricGroupKeys, stages, rolloutContextKindKey, metricRegressionThreshold fields; ApplicablePolicy gained flagTagKeys
  • Various description/documentation updates across endpoints (contexts, feature flags, environments, etc.)
  • New and updated endpoints throughout the spec

Human review checklist:

  • Confirm AI Configs beta→GA rename is intentional
  • Spot-check new release policy schemas (ProgressiveReleaseConfig, ReleasePolicyStage, expanded GuardedReleaseConfig) look correct
  • Verify no unintended endpoint removals in the generated CLI commands
  • Decide whether the .pre-commit-config.yaml cache-bust comment should be kept or removed before merge

Describe alternatives you've considered

N/A — this is the standard code generation workflow.

Additional context

Build verified locally with make build — compiles successfully. Fixed missing trailing newline in ld-openapi.json for pre-commit end-of-file-fixer compliance.

The build CI check was initially failing due to a stale pre-commit cache (the cached golangci-lint environment was incompatible with Go 1.26.0, causing the runner to be killed with exit code 143). This was resolved by adding a comment to .pre-commit-config.yaml to invalidate the cache and force a fresh rebuild. All CI checks now pass.

Link to Devin run: https://app.devin.ai/sessions/db52e77ac4c044baa2918e5b0d8f34b0
Requested by: @bwoskow-ld

Co-Authored-By: Ben Woskow <bwoskow@launchdarkly.com>
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

devin-ai-integration bot and others added 2 commits February 20, 2026 01:52
Co-Authored-By: Ben Woskow <bwoskow@launchdarkly.com>
Co-Authored-By: Ben Woskow <bwoskow@launchdarkly.com>
@devin-ai-integration devin-ai-integration bot changed the title chore: regenerate source code from latest OpenAPI spec feat: regenerate source code from latest OpenAPI spec Feb 20, 2026
devin-ai-integration bot and others added 3 commits February 20, 2026 02:00
Co-Authored-By: Ben Woskow <bwoskow@launchdarkly.com>
Co-Authored-By: Ben Woskow <bwoskow@launchdarkly.com>
Co-Authored-By: Ben Woskow <bwoskow@launchdarkly.com>
@bwoskow-ld
Copy link
Member Author

Aside - we have inconsistently called past PRs like this "features" (1, 2) or "chores" (1, 2). I chose to label this as a feature since we're technically adding new cli resources, but we should aim for consistency moving forward.

Co-Authored-By: Ben Woskow <bwoskow@launchdarkly.com>
@bwoskow-ld bwoskow-ld marked this pull request as ready for review February 20, 2026 21:49
@bwoskow-ld bwoskow-ld requested a review from a team February 20, 2026 21:49
@bwoskow-ld bwoskow-ld merged commit 98a4d5b into main Feb 20, 2026
13 checks passed
@bwoskow-ld bwoskow-ld deleted the devin/1771551932-regenerate-openapi branch February 20, 2026 21:57
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.

2 participants