Skip to content

Support publiccode.yml v1#396

Draft
bfabio wants to merge 5 commits into
mainfrom
v1
Draft

Support publiccode.yml v1#396
bfabio wants to merge 5 commits into
mainfrom
v1

Conversation

@bfabio

@bfabio bfabio commented Jun 24, 2026

Copy link
Copy Markdown
Member

publiccode.yml 1.0 is in RC and the parser needs to handle the new
major version.

This adds v1 parsing and aligns validation with the 1.0-rc spec:

  • the Italian section is dropped, so IT: is now an unknown field
  • phone must follow E.164
  • government is no longer a valid scope
  • country codes must be uppercase ISO 3166-1 alpha-2

Draft because 1.0 is still an RC and can change, so let's not merge
until it's final.

bfabio added 5 commits June 24, 2026 15:01
v1 dropped the whole Italian country section, so IT and it are now
unknown fields. Moved the conforme, riuso/codiceIPA and lowercase
section fixtures into the invalid v1 set.
phone numvers is now validated as E.164.
government is no longer a valid intendedAudience scope in v1.
v1 country codes must be strict ISO 3166-1 alpha-2, uppercase only.
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 33.33333% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.07%. Comparing base (efe4783) to head (4c7b9a7).

Files with missing lines Patch % Lines
validators/v1.go 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #396      +/-   ##
==========================================
- Coverage   83.80%   83.07%   -0.74%     
==========================================
  Files          14       15       +1     
  Lines        1099     1087      -12     
==========================================
- Hits          921      903      -18     
- Misses        154      160       +6     
  Partials       24       24              

☔ View full report in Codecov by Harness.
📢 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.

1 participant