class Jargon::Schema

Defined in:

jargon/schema.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_file(path : String) : Schema #

[View source]
def self.from_json(json_string : String) : Schema #

[View source]
def self.from_json_any(json : JSON::Any) : Schema #

[View source]
def self.new(root : Property, definitions : Hash(String, Property) = {} of String => Property, positional : Array(String) = [] of String) #

[View source]

Instance Method Detail

def definitions : Hash(String, Property) #

[View source]
def positional : Array(String) #

[View source]
def resolve_ref(ref : String) : Property | Nil #

[View source]
def root : Property #

[View source]