Skip to content

Make images optional in decoded QR-code and barcode objects - #546

Merged
adulau merged 1 commit into
mainfrom
codex/optional-decoder-images
Oct 15, 2026
Merged

adulau merged 1 commit into
mainfrom
codex/optional-decoder-images

Conversation

@Terrtia

@Terrtia Terrtia commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Allow decoded barcode and QR-code results to be shared without attaching the original image.

  • In decoded-barcode, remove barcode-image from required, leaving decoded-value required.
  • In decoded-qrcode, replace requiredOneOf: ["decoded-value", "qr-image"] with required: ["decoded-value"], making the decoded result the minimum content.
  • Bump both template versions from 1 to 2.

Both image attributes remain available as optional attachments.

Compatibility: the QR-code template previously accepted image-only objects. With this change, both templates require a decoded value.

Validation: both updated templates pass schema_objects.json validation and jq -S -j formatting checks. Attribute definitions and UUIDs are preserved. Full ./validate_all.sh was not run locally because the workspace proxy prevented cloning the repository; GitHub Actions will run the full suite.

@adulau
adulau merged commit 809e947 into main Oct 15, 2026
7 checks passed
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