Skip to content

Conversation

@cdmurph32
Copy link
Collaborator

Remove global settings as this SDK is not yet stable.

Add TODO for methods which do not yet support settings in the
constructor
}

static withJson(json: Manifest): Builder {
static withJson(json: Manifest, settings?: C2paSettings): Builder {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know the context APIs are coming.
I wonder if you'll end up then changing the second argument to a generic "options" object that holds both settings and context, or only the context. Hard to guess since the API is not totally settled.
But I wonder if you would already be better off having a placeholder options here on which you could put anything so signatures don't change.
Not a change request, just a point to ponder.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't even know if there is a meaningful distinction between context and settings at this point.

/**
* Load settings from a JSON string and apply them globally.
* @param json The JSON string containing the settings configuration
* Create a settings object with trust configuration.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Create a settings object with trust configuration.
* Create a Settings object with trust configuration.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

README.md Outdated
// Create with custom settings
const settings = {
verify: {
verify_after_sign: false
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably explain why we set this to false... I don't know for how long we'll keep this value to false either. (Target is to have that one default to true).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just added a link to the rust SDK for how the settings work. No point in describing something that isn't nailed down in multiple places.

@tmathern
Copy link

tmathern commented Jan 8, 2026

LGTM

@cdmurph32 cdmurph32 merged commit 70a7ee3 into main Jan 9, 2026
3 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.

3 participants