| org.goss | ||
| sh.helm | ||
| README.md | ||
| validate.sh | ||
| yaml-schema.md | ||
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.