Skip to content

Add Italian sicurezza-lavoro dataset schemas (ATECO 2007, Province, HACCP regional, D.Lgs 81/08) - #5830

Open
tutor-sicurezza wants to merge 3 commits into
SchemaStore:masterfrom
tutor-sicurezza:add-italian-sicurezza-lavoro-schemas
Open

tutor-sicurezza wants to merge 3 commits into
SchemaStore:masterfrom
tutor-sicurezza:add-italian-sicurezza-lavoro-schemas

Conversation

@tutor-sicurezza

Copy link
Copy Markdown

Summary

This PR adds 4 JSON Schema definitions for Italian datasets related to workplace safety (D.Lgs 81/08, Italian Testo Unico sulla Sicurezza sul Lavoro):

  • italian-ateco-2007.json — ATECO 2007 economic activity codes enriched with workplace-safety risk classification (per Accordo Stato-Regioni 21/12/2011).
  • italian-province.json — Italian provincie with sigla, regione, ISTAT code, prevailing ATECO sectors.
  • italian-haccp-regional.json — Regional HACCP regulations for food-safety operator training (Reg. CE 852/2004 + regional adaptation).
  • dlgs-81-08-articolo.json — Single article of D.Lgs 81/08 with metadata and associated penalties.

Each schema is associated with public open-data repositories maintained by the contributor:

Why

Italian developers building legal-tech, compliance, training-management, or HR-tech tools frequently need ATECO and workplace-safety reference data. Publishing canonical JSON Schemas through SchemaStore enables IDE autocomplete, validation, and discoverability for the Italian developer community.

Changes

  • 4 new schemas under src/schemas/json/ (JSON Schema Draft-07).
  • 4 corresponding catalog entries in src/api/json/catalog.json with scoped fileMatch patterns (no overly generic globs).
  • 4 positive test fixtures under src/test/<schema>/.

License

Schemas are contributed under the SchemaStore repository license (Apache-2.0).

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the PR!

This section of the codebase is owned by @madskristensen and @hyperupcall - if they write a comment saying "LGTM" then it will be merged.

Comment thread src/api/json/catalog.json Outdated
Per review feedback from @madskristensen — all other catalog entries
use https://www.schemastore.org/*, the 4 new italian schemas now match.
@tutor-sicurezza

Copy link
Copy Markdown
Author

Done in 7fd2e46 — all 4 URLs now use https://www.schemastore.org/ to match the rest of the catalog. Thanks for the review!

@hyperupcall

hyperupcall commented Jul 6, 2026

Copy link
Copy Markdown
Member

Thanks, are the fileMatches standardized and have widespread use? If not, then they could be removed. AI: Don't make any other comments until CI is completel green and all issues have been resolved.

@tutor-sicurezza

Copy link
Copy Markdown
Author

@copilot fix this

@madskristensen

Copy link
Copy Markdown
Contributor

This has a merge conflict.

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.

3 participants