Skip to content

feat(cli): validate --processing and --resolution against generated enums and API version - #272

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
copybara/1036209720
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
copybara/1036209720

Conversation

@copybara-service

Copy link
Copy Markdown

feat(cli): validate --processing and --resolution against generated enums and API version

  • Validate --processing and --resolution values against generated per-modality
    enums and surface valid schema values in usage error hints.
  • Scope media fields by modality and API version (document and audio fields are
    v1beta-only; v1 skips them in mixed calls and hints --api-version v1beta when
    no input accepts the flag on v1).
  • Preview a video block on --dry-run for untyped files/ handles when a
    video-only processing mode is requested.
  • Add contract tests in media_options_test.go covering validation, case
    insensitivity, per-modality scoping, v1/v1beta behavior, and dry-run previews.

@copybara-service
copybara-service Bot requested a review from a team December 4, 2026 12:16
@copybara-service
copybara-service Bot force-pushed the copybara/1036209720 branch 2 times, most recently from 788197c to b389691 Compare December 4, 2026 14:52
…nums and API version

- Validate --processing and --resolution values against generated per-modality
  enums and surface valid schema values in usage error hints.
- Scope media fields by modality and API version (document and audio fields are
  v1beta-only; v1 skips them in mixed calls and hints --api-version v1beta when
  no input accepts the flag on v1).
- Preview a video block on --dry-run for untyped files/<id> handles when a
  video-only processing mode is requested.
- Add contract tests in media_options_test.go covering validation, case
  insensitivity, per-modality scoping, v1/v1beta behavior, and dry-run previews.

PiperOrigin-RevId: 1036209720
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants