Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/json-schema-tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: json-schema-tests
on:
pull_request:
types: [opened, synchronize]
pull_request:
types: [opened, synchronize]
# Paths can be used to only trigger actions when you have edited checklist files
branches:
- 'main'
branches:
- "main"

permissions:
contents: read
Expand All @@ -22,7 +22,7 @@ jobs:
with:
comment: "true"
json_schema_version: "draft-2020-12"

schema-tests:
runs-on: ubuntu-latest
steps:
Expand All @@ -32,7 +32,7 @@ jobs:
uses: sourcemeta/jsonschema@v11.1.1

- name: Run generic schema unit tests
run: jsonschema test tests/gov-schema.json --resolve schemas/schema-2.0.0.json
run: jsonschema test tests/gov-schema.json --resolve schemas/schema-0.1.0.json

- name: Run CMS schema unit tests
run: jsonschema test tests/cms-schema.json --resolve schemas/cms/schema-2.1.0.json
run: jsonschema test tests/cms-schema.json --resolve schemas/cms/schema-2.2.0.json
File renamed without changes.
File renamed without changes.
528 changes: 528 additions & 0 deletions schemas/cms/schema-2.2.0.json

Large diffs are not rendered by default.

349 changes: 349 additions & 0 deletions schemas/schema-0.1.0.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/cms-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"target": "../schemas/cms/schema-2.1.0.json",
"target": "../schemas/cms/schema-2.2.0.json",
"$comment": "This test suite validates code.json files for compliance with the CMS schema requirements.",
"tests": [
{
Expand Down
1 change: 1 addition & 0 deletions tests/examples/codejson-example-dedupliFHIR.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "dedupliFHIR",
"identifier": "dedupliFHIR",
"description": "Prototype for basic deduplication and aggregation of eCQM data",
"longDescription": "A CLI bundled with an Electron.js front-end that provides data-linkage and AI deduplication for reported Accountable Care Organization (ACO) data at scale.",
"status": "Production",
Expand Down
1 change: 1 addition & 0 deletions tests/examples/codejson-example-metrics.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "metrics",
"identifier": "metrics",
"description": "CMS Open Source Repository Metrics Website",
"longDescription": "The CMS Repository Metrics Website shows an overview of software development activity across open source projects within a specified organization. It is designed for developers and program managers interested in monitoring health and activity of CMS open source repositories.",
"status": "Production",
Expand Down
2 changes: 1 addition & 1 deletion tests/gov-schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"target": "../schemas/schema-2.0.0.json",
"target": "../schemas/schema-0.1.0.json",
"$comment": "This test suite validates CMS code.json files for compliance with the generic schema, ensuring alignment with federal government metadata standards.",
"tests": [
{
Expand Down
Loading