0.8.3 • Published 4 years ago

@rdmo-author/schema v0.8.3

Weekly downloads
95
License
MIT
Repository
gitlab
Last release
4 years ago

RDMO JSON Schema

This project contains a JSON schema for maintaining RDMO catalogs. The schema itself can be found under https://rdmo-json.gitlab.io/schema/catalog.schema.json.

Quick start

If you want to write JSON documents conforming to my catalog schema, I recommend you the following setup for productive writing:

  1. Install and open VSCode
  2. Create a new file and save it as JSON file, E.G. catalog.json
  3. Insert the following snippet:
{
  "$schema": "https://rdmo-json.gitlab.io/schema/catalog.schema.json",
}

If you continue typing after the $schema line, VSCode will provide validation, formatting, navigation, and autocompletion (see JSON editing in Visual Studio Code for more instructions).

If you are new to JSON, you can read a short introduction to JSON.

Install

npm i @rdmo-author/schema

Usage

The module has two exports:

  • schema: The JSON schema itself
  • validate: A validation function compiled by Ajv
0.8.3

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago