Skip to content

Update SchemaReference component to render default values properly#294

Merged
crandmck merged 3 commits intomainfrom
schema-ref-defaults
Feb 6, 2026
Merged

Update SchemaReference component to render default values properly#294
crandmck merged 3 commits intomainfrom
schema-ref-defaults

Conversation

@crandmck
Copy link
Collaborator

@crandmck crandmck commented Feb 5, 2026

Currently, some default values are not captured properly in c2pa-rs schema generation.
contentauth/c2pa-rs#1824 addresses this, and this PR leverages the schema-level defaults to display the default values. Where defaults are part of an object, the default just links to that object.

NOTE: This PR includes schema files in static/schemas which are generated using the changes in contentauth/c2pa-rs#1824, however these files will be overwritten when there is a new Rust release. Until contentauth/c2pa-rs#1824 is merged, the schemas won't properly reflect the default values and so the changes in this PR won't work.

The main example where this matters is https://deploy-preview-294--cai-open-source.netlify.app/docs/manifest/json-ref/settings-schema.

@netlify
Copy link

netlify bot commented Feb 5, 2026

Deploy Preview for cai-open-source ready!

Name Link
🔨 Latest commit 6c7abb1
🔍 Latest deploy log https://app.netlify.com/projects/cai-open-source/deploys/6985380de98912000867f344
😎 Deploy Preview https://deploy-preview-294--cai-open-source.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

@github-actions github-actions bot temporarily deployed to pull request February 5, 2026 18:53 Inactive
@crandmck crandmck merged commit 2cc7142 into main Feb 6, 2026
7 checks passed
@crandmck crandmck deleted the schema-ref-defaults branch February 6, 2026 01:13
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