Skip to content

Errors in publiccode.yml file #1

Closed

Description

Ci sono errori nel file publiccode.yml:

Message
❌ publiccode.yml:127 yaml: did not find expected key

Vuoi rendere automatico questo controllo?

Aggiungi publiccode-parser-action al tuo repository GitHub, per verificare automaticamente il tuo publiccode.yml a ogni commit o pull request:
    
# Aggiungi questo a .github/workflows/publiccode-validation.yml
#
on: [pull_request]

jobs:
  publiccode_validation:
    runs-on: ubuntu-latest
    name: publiccode validation
    steps:
    - uses: actions/checkout@v3
    - uses: italia/publiccode-parser-action@v1
      with:
        publiccode: 'publiccode.yml'
    
  
Usa publiccode-parser-go per verificare il tuo publiccode.yml in locale da riga di comando:

$ docker run -i italia/publiccode-parser-go /dev/stdin < publiccode.yml
    

Serve aiuto?

Unisciti a https://slack.developers.italia.it e chiedi nel canale #publiccode o usa Forum Italia.

🔗 Developers Italia | 📄 il formato publiccode.yml | ℹ️ Il mio codice sorgente | *

Activity

  1. self-assigned this
    on Dec 10, 2025
  2. franpala commented on Dec 10, 2025

    @franpala
    Contributor

    Penso di aver sistemato:

    docker run -v "$(pwd)":/files italia/publiccode-parser-go 
    publiccode.yml:161:3: warning: intendedAudience.countries[0]: Lowercase country codes are DEPRECATED. Use uppercase instead ('IT')
    publiccode.yml:131:3: warning: legal.repoOwner: This key is DEPRECATED and will be removed in the future. Use 'organisation.name' instead
    publiccode.yml:24:5: warning: description.en.genericName: This key is DEPRECATED and will be removed in the future. It's safe to drop it
    publiccode.yml:76:5: warning: description.it.genericName: This key is DEPRECATED and will be removed in the future. It's safe to drop it
    publiccode.yml:166:1: warning: it: Lowercase country codes are DEPRECATED and will be removed in the future. Use 'IT' instead
    publiccode.yml:0:0: warning: IT.conforme: This key is DEPRECATED and will be removed in the future. It's safe to drop it
    publiccode.yml:0:0: warning: IT.riuso.codiceIPA: This key is DEPRECATED and will be removed in the future. Use 'organisation.uri' and set it to 'urn:x-italian-pa:arlpa_to' instead
    
  3. astagi commented on Dec 11, 2025

    @astagi
    Contributor

    Grazie @franpala ho aperto una PR #2

    In questo modo la validazione gira sia su main che su una PR verso main così siamo tranquilli per ogni modifica :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions