Skip to content

feat: regenerate source code from latest OpenAPI spec#645

Draft
bwoskow-ld wants to merge 6 commits intomainfrom
devin/1771551932-regenerate-openapi
Draft

feat: regenerate source code from latest OpenAPI spec#645
bwoskow-ld wants to merge 6 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.

Two files changed:

  • ld-openapi.json — updated spec (3559 lines changed)
  • cmd/resources/resource_cmds.go — regenerated CLI resource commands (634 lines changed)

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

Describe alternatives you've considered

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

Additional context

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

Note: The build CI check failed on the first run due to a GitHub Actions runner shutdown signal (exit code 143), not a code issue. The ci check (tests) passed.

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.

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

Comments