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 18 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 44.35484% with 138 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.90%. Comparing base (af82aed) to head (6bf6ea5).

Files with missing lines Patch % Lines
Library/Sources/Manifest/SettingsValidator.swift 0.00% 55 Missing ⚠️
Library/Sources/C2PASettings.swift 0.00% 32 Missing ⚠️
Library/Sources/C2PAJson.swift 48.27% 15 Missing ⚠️
Library/Sources/C2PAError.swift 66.66% 10 Missing ⚠️
Library/Sources/SecureEnclaveSigner.swift 11.11% 8 Missing ⚠️
Library/Sources/Manifest/ValidationResult.swift 0.00% 6 Missing ⚠️
Library/Sources/WebServiceSigner.swift 84.84% 5 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 ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #77      +/-   ##
==========================================
- Coverage   77.09%   71.90%   -5.19%     
==========================================
  Files          39       45       +6     
  Lines        1301     1406     +105     
==========================================
+ Hits         1003     1011       +8     
- Misses        298      395      +97     
Flag Coverage Δ
unittests 71.90% <44.35%> (-5.19%) ⬇️

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.

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