Skip to content

[4] Feat: Manifest validation#78

Open
redaranj wants to merge 19 commits intocontentauth:mainfrom
redaranj:feature/manifest-validation
Open

[4] Feat: Manifest validation#78
redaranj wants to merge 19 commits intocontentauth:mainfrom
redaranj:feature/manifest-validation

Conversation

@redaranj
Copy link
Member

@redaranj redaranj commented Mar 5, 2026

Changes in this pull request

  • Adds manifest validator to check correctness before passing the structure to the underlying library

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.
@codecov
Copy link

codecov bot commented Mar 5, 2026

Codecov Report

❌ Patch coverage is 88.81119% with 64 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.67%. Comparing base (af82aed) to head (317cb30).

Files with missing lines Patch % Lines
Library/Sources/C2PASettings.swift 0.00% 32 Missing ⚠️
Library/Sources/SecureEnclaveSigner.swift 11.11% 8 Missing ⚠️
Library/Sources/Manifest/AssertionDefinition.swift 96.89% 5 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/Manifest/ManifestValidator.swift 95.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 ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #78      +/-   ##
==========================================
+ Coverage   77.09%   80.67%   +3.57%     
==========================================
  Files          39       46       +7     
  Lines        1301     1661     +360     
==========================================
+ Hits         1003     1340     +337     
- Misses        298      321      +23     
Flag Coverage Δ
unittests 80.67% <88.81%> (+3.57%) ⬆️

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/manifest-validation branch from 8707f7f to 1a3f755 Compare March 12, 2026 12:22
@redaranj redaranj force-pushed the feature/manifest-validation branch from 1a3f755 to 317cb30 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