From 0b6d263b4e4d58b90d98d071a295e41c595b1d1f Mon Sep 17 00:00:00 2001 From: Emmanuel Gautier <git@emmanuelgautier.fr> Date: Mon, 14 Oct 2024 11:41:46 +0200 Subject: [PATCH] ci: validate json schema files --- .github/workflows/main.yml | 20 +++++++++++++++++++ README.md | 7 +++++++ .../content}/draft/v0.1.0/article.schema.json | 0 .../draft/v0.1.0/audience.schema.json | 0 .../draft/v0.1.0/content-id.schema.json | 0 .../draft/v0.1.0/creative-work.schema.json | 0 .../energy-consumption-details.schema.json | 0 ...-energy-efficiency-enumeration.schema.json | 0 .../draft/v0.1.0/galactiks-extras.schema.json | 0 .../content}/draft/v0.1.0/image.schema.json | 0 .../draft/v0.1.0/language.schema.json | 0 .../content}/draft/v0.1.0/offer.schema.json | 0 .../content}/draft/v0.1.0/person.schema.json | 0 .../content}/draft/v0.1.0/place.schema.json | 0 .../draft/v0.1.0/postal-address.schema.json | 0 .../v0.1.0/price-specification.schema.json | 0 .../content}/draft/v0.1.0/product.schema.json | 0 .../draft/v0.1.0/property-value.schema.json | 0 .../v0.1.0/quantitative-value.schema.json | 0 .../content}/draft/v0.1.0/thing.schema.json | 0 .../v0.1.0/tourist-attraction.schema.json | 0 .../v0.1.0/tourist-destination.schema.json | 0 .../content}/draft/v0.1.0/webpage.schema.json | 0 .../frontmatter}/galactiks.json | 0 24 files changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml create mode 100644 README.md rename {content => schemas/content}/draft/v0.1.0/article.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/audience.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/content-id.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/creative-work.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/energy-consumption-details.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/eu-energy-efficiency-enumeration.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/galactiks-extras.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/image.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/language.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/offer.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/person.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/place.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/postal-address.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/price-specification.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/product.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/property-value.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/quantitative-value.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/thing.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/tourist-attraction.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/tourist-destination.schema.json (100%) rename {content => schemas/content}/draft/v0.1.0/webpage.schema.json (100%) rename {frontmatter => schemas/frontmatter}/galactiks.json (100%) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ff6be17 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Validate JSON + uses: emmanuelgautier/validate-json@main + with: + files: schemas/**/*.json diff --git a/README.md b/README.md new file mode 100644 index 0000000..ebce985 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Galactiks Schemas + +JSON Schemas used in the [Galactiks](https://www.galactiks.com) ecosystem. + +## License + +This repository is licensed under the [CC0-1.0 License](https://github.com/thegalactiks/schemas/blob/main/LICENSE). diff --git a/content/draft/v0.1.0/article.schema.json b/schemas/content/draft/v0.1.0/article.schema.json similarity index 100% rename from content/draft/v0.1.0/article.schema.json rename to schemas/content/draft/v0.1.0/article.schema.json diff --git a/content/draft/v0.1.0/audience.schema.json b/schemas/content/draft/v0.1.0/audience.schema.json similarity index 100% rename from content/draft/v0.1.0/audience.schema.json rename to schemas/content/draft/v0.1.0/audience.schema.json diff --git a/content/draft/v0.1.0/content-id.schema.json b/schemas/content/draft/v0.1.0/content-id.schema.json similarity index 100% rename from content/draft/v0.1.0/content-id.schema.json rename to schemas/content/draft/v0.1.0/content-id.schema.json diff --git a/content/draft/v0.1.0/creative-work.schema.json b/schemas/content/draft/v0.1.0/creative-work.schema.json similarity index 100% rename from content/draft/v0.1.0/creative-work.schema.json rename to schemas/content/draft/v0.1.0/creative-work.schema.json diff --git a/content/draft/v0.1.0/energy-consumption-details.schema.json b/schemas/content/draft/v0.1.0/energy-consumption-details.schema.json similarity index 100% rename from content/draft/v0.1.0/energy-consumption-details.schema.json rename to schemas/content/draft/v0.1.0/energy-consumption-details.schema.json diff --git a/content/draft/v0.1.0/eu-energy-efficiency-enumeration.schema.json b/schemas/content/draft/v0.1.0/eu-energy-efficiency-enumeration.schema.json similarity index 100% rename from content/draft/v0.1.0/eu-energy-efficiency-enumeration.schema.json rename to schemas/content/draft/v0.1.0/eu-energy-efficiency-enumeration.schema.json diff --git a/content/draft/v0.1.0/galactiks-extras.schema.json b/schemas/content/draft/v0.1.0/galactiks-extras.schema.json similarity index 100% rename from content/draft/v0.1.0/galactiks-extras.schema.json rename to schemas/content/draft/v0.1.0/galactiks-extras.schema.json diff --git a/content/draft/v0.1.0/image.schema.json b/schemas/content/draft/v0.1.0/image.schema.json similarity index 100% rename from content/draft/v0.1.0/image.schema.json rename to schemas/content/draft/v0.1.0/image.schema.json diff --git a/content/draft/v0.1.0/language.schema.json b/schemas/content/draft/v0.1.0/language.schema.json similarity index 100% rename from content/draft/v0.1.0/language.schema.json rename to schemas/content/draft/v0.1.0/language.schema.json diff --git a/content/draft/v0.1.0/offer.schema.json b/schemas/content/draft/v0.1.0/offer.schema.json similarity index 100% rename from content/draft/v0.1.0/offer.schema.json rename to schemas/content/draft/v0.1.0/offer.schema.json diff --git a/content/draft/v0.1.0/person.schema.json b/schemas/content/draft/v0.1.0/person.schema.json similarity index 100% rename from content/draft/v0.1.0/person.schema.json rename to schemas/content/draft/v0.1.0/person.schema.json diff --git a/content/draft/v0.1.0/place.schema.json b/schemas/content/draft/v0.1.0/place.schema.json similarity index 100% rename from content/draft/v0.1.0/place.schema.json rename to schemas/content/draft/v0.1.0/place.schema.json diff --git a/content/draft/v0.1.0/postal-address.schema.json b/schemas/content/draft/v0.1.0/postal-address.schema.json similarity index 100% rename from content/draft/v0.1.0/postal-address.schema.json rename to schemas/content/draft/v0.1.0/postal-address.schema.json diff --git a/content/draft/v0.1.0/price-specification.schema.json b/schemas/content/draft/v0.1.0/price-specification.schema.json similarity index 100% rename from content/draft/v0.1.0/price-specification.schema.json rename to schemas/content/draft/v0.1.0/price-specification.schema.json diff --git a/content/draft/v0.1.0/product.schema.json b/schemas/content/draft/v0.1.0/product.schema.json similarity index 100% rename from content/draft/v0.1.0/product.schema.json rename to schemas/content/draft/v0.1.0/product.schema.json diff --git a/content/draft/v0.1.0/property-value.schema.json b/schemas/content/draft/v0.1.0/property-value.schema.json similarity index 100% rename from content/draft/v0.1.0/property-value.schema.json rename to schemas/content/draft/v0.1.0/property-value.schema.json diff --git a/content/draft/v0.1.0/quantitative-value.schema.json b/schemas/content/draft/v0.1.0/quantitative-value.schema.json similarity index 100% rename from content/draft/v0.1.0/quantitative-value.schema.json rename to schemas/content/draft/v0.1.0/quantitative-value.schema.json diff --git a/content/draft/v0.1.0/thing.schema.json b/schemas/content/draft/v0.1.0/thing.schema.json similarity index 100% rename from content/draft/v0.1.0/thing.schema.json rename to schemas/content/draft/v0.1.0/thing.schema.json diff --git a/content/draft/v0.1.0/tourist-attraction.schema.json b/schemas/content/draft/v0.1.0/tourist-attraction.schema.json similarity index 100% rename from content/draft/v0.1.0/tourist-attraction.schema.json rename to schemas/content/draft/v0.1.0/tourist-attraction.schema.json diff --git a/content/draft/v0.1.0/tourist-destination.schema.json b/schemas/content/draft/v0.1.0/tourist-destination.schema.json similarity index 100% rename from content/draft/v0.1.0/tourist-destination.schema.json rename to schemas/content/draft/v0.1.0/tourist-destination.schema.json diff --git a/content/draft/v0.1.0/webpage.schema.json b/schemas/content/draft/v0.1.0/webpage.schema.json similarity index 100% rename from content/draft/v0.1.0/webpage.schema.json rename to schemas/content/draft/v0.1.0/webpage.schema.json diff --git a/frontmatter/galactiks.json b/schemas/frontmatter/galactiks.json similarity index 100% rename from frontmatter/galactiks.json rename to schemas/frontmatter/galactiks.json