Documentation ¶
Overview ¶
Copyright 2018 Lee Boynton (lee@boynton.com, github.com/boynton) Licensed under the terms of the Apache version 2.0 license. See LICENSE file for terms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TypeDefs ¶
func TypeDefs(js JSONSchema) map[string]map[string]interface{}
Types ¶
type JSONSchema ¶
type JSONSchema map[string]interface{}
func Generate ¶
func Generate(schema *rdl.Schema) (JSONSchema, error)
always generates schemas of the form {"definitions": { ... }}, unless no types are defined at all, then just {}
func (JSONSchema) String ¶
func (js JSONSchema) String() string
Click to show internal directories.
Click to hide internal directories.