Skip to content

3 of 4 | Generate product duration help from OpenAPI - #223

Draft
joshdholtz wants to merge 1 commit into
josh/dx-1057-openapi-snapshotsfrom
josh/dx-1056-duration-help
Draft

joshdholtz wants to merge 1 commit into
josh/dx-1057-openapi-snapshotsfrom
josh/dx-1056-duration-help

Conversation

@joshdholtz

@joshdholtz joshdholtz commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Checklist

  • Tests added or updated, if applicable
  • go build ./..., go test ./..., and gofmt pass

Motivation

rc products create told people they could send --duration to other stores. The API rejects it there.

Description

Generate the --duration help from the product creation request field and duration enum in OpenAPI. Both --help and rc schema now show when the flag applies and which values it accepts. The request still goes through the existing validation.

Stacked on #222. The upstream product creation spec also needs the updated wording before the scheduled sync can pick it up.

@joshdholtz
joshdholtz added this pull request to stack #225 November 26, 2026 23:19
@joshdholtz joshdholtz changed the title feat(cli): derive product duration help from OpenAPI 3 of 4 | Generate product duration help from OpenAPI Nov 26, 2026
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