loader

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUnnamedTypes

func AddUnnamedTypes(rootSchema *schema.Schema)

func CompileAllOf

func CompileAllOf(rootSchema *schema.Schema)

CompileAllOf compile "allOf" rules in root schema, and in all types. Adds the necessary properties to objects, removes "allOf" rule.

func CompileBasic

func CompileBasic(rootSchema *schema.Schema, areKeysOptionalByDefault bool)

func LoadSchema

func LoadSchema(scan *scanner.Scanner, rootSchema *schema.Schema, areKeysOptionalByDefault bool) *schema.Schema

func LoadSchemaWithoutCompile

func LoadSchemaWithoutCompile(scan *scanner.Scanner, rootSchema *schema.Schema) schema.Schema

func NewSchemaForSdk

func NewSchemaForSdk(file *fs.File, areKeysOptionalByDefault bool) *schema.Schema

NewSchemaForSdk reads the Schema from a file without adding to the collection. Does not compile allOf, in order that before there was a possibility to add additional TYPES.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL