@shinymayhem/json-schema-generator
Version:
Generate/compile .yaml files (not .yml at the moment) into a single JSON schema file. Resolves references to other schema docuements in the same directory
26 lines (25 loc) • 455 B
YAML
$schema: http://json-schema.org/draft-04/hyper-schema
shortName: parts
title: Parts
description: Collection of common parts
stability: Alpha
strictProperties: true
additionalProperties: false
definitions:
wheel:
type: object
description: Wheel
required:
- color
properties:
color:
$ref: color
engine:
description: engine
type: string
enum:
- "4 cylinder"
- "6 cylinder"
type:
- object