Skip to content

[3] Feat: Settings building and validation#77

Open
redaranj wants to merge 18 commits intocontentauth:mainfrom
redaranj:feature/settings-apis
Open

[3] Feat: Settings building and validation#77
redaranj wants to merge 18 commits intocontentauth:mainfrom
redaranj:feature/settings-apis

Conversation

@redaranj
Copy link
Member

@redaranj redaranj commented Mar 5, 2026

Changes in this pull request

  • Adds features for building and validating JSON for the settings API

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • All applicable changes have been documented
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment

tladesignz and others added 17 commits January 30, 2026 14:38
…map types to a string value manually. `SigningAlgorithm.rawValue` will automatically contain the case identifier as string. `CaseIterable` provides `.allCases` which makes sure, we catch all available algorithms in the test. Which, to be honest now became somewhat superfluous.
…e-form text string for a parameter which is only allowed to have 2 different values.
…ertible`. (Even when they're not localized. You're in good company with Apple…)
…chainSigner` to `SigningAlgorithm` to improve code clarity.
@redaranj redaranj changed the title [3] Feat: Settings APIs [3] Feat: Settings building and validation Mar 5, 2026
@codecov
Copy link

codecov bot commented Mar 5, 2026

Codecov Report

❌ Patch coverage is 77.41935% with 56 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.73%. Comparing base (af82aed) to head (14cbe03).

Files with missing lines Patch % Lines
Library/Sources/C2PASettings.swift 0.00% 32 Missing ⚠️
Library/Sources/SecureEnclaveSigner.swift 11.11% 8 Missing ⚠️
Library/Sources/WebServiceSigner.swift 84.84% 5 Missing ⚠️
Library/Sources/C2PAJson.swift 89.65% 3 Missing ⚠️
Library/Sources/KeychainSigner.swift 50.00% 3 Missing ⚠️
Library/Sources/Signer.swift 84.61% 2 Missing ⚠️
Library/Sources/Builder.swift 66.66% 1 Missing ⚠️
Library/Sources/Manifest/SettingsValidator.swift 98.18% 1 Missing ⚠️
Library/Sources/Reader.swift 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #77      +/-   ##
==========================================
+ Coverage   77.09%   77.73%   +0.64%     
==========================================
  Files          39       45       +6     
  Lines        1301     1406     +105     
==========================================
+ Hits         1003     1093      +90     
- Misses        298      313      +15     
Flag Coverage Δ
unittests 77.73% <77.41%> (+0.64%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@redaranj redaranj force-pushed the feature/settings-apis branch from 6bf6ea5 to df51b56 Compare March 12, 2026 12:22
@redaranj redaranj force-pushed the feature/settings-apis branch from df51b56 to 14cbe03 Compare March 12, 2026 13:07
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