1
0
Fork 0
A repository containing a collection of JSON schemas for various data structures and use cases.
Find a file
2025-12-07 21:50:11 +01:00
org.goss Add README and JSON schema for Goss configuration validation 2025-02-15 08:22:30 +01:00
sh.helm Add sh.helm/chart.json 2025-02-19 05:04:27 +00:00
README.md Update README to reference the correct schema URL for YAML language server 2025-05-10 08:38:32 +02:00
validate.sh feat: Add YAML schema organization documentation and validation script, and update classification schemas and README. 2025-12-07 21:50:11 +01:00
yaml-schema.md feat: Add YAML schema organization documentation and validation script, and update classification schemas and README. 2025-12-07 21:50:11 +01:00

JSON Schemas Collection

A repository containing a collection of JSON schemas for various data structures and use cases.

Brief explainer: JSON schemas are used to validate and enforce data structure consistency across different applications. These schemas are useful for ensuring data integrity, API request validation, and interoperability between systems.

Usage

Project Embedding

Clone this repository: git clone code.252.no/pub/schemas.git, add it to e.g. public/schemas in your Nuxt3 project.

Use the schemas in your project by referencing the required JSON schema file.

Validate JSON data against a schema using a validation tool or library (e.g., ajv for JavaScript, jsonschema for Python).

In Visual Studio Code

Support provided by the vscode-json-languageserver. This is enabled by default in VS Code.

To enable schema validation in VS Code, add the following YAML directive at the top of your file:

# yaml-language-server: $schema=https://code.252.no/pub/schemas/raw/branch/main/org.goss/schema.yaml
file:
  /usr/libexec/postgresql16/psql:
    exists: true

This directive tells the YAML language server to use the schema from the schemas repository.