Loader

net.reactivecore.cjs.Loader
See theLoader companion object
case class Loader[F[_]](downloader: Downloader[F], defaultVocabulary: Vocabulary)(implicit monad: MonadError[F, Failure])

Combines the different steps to build a SchemaValidator from JSON.

Main entry point into handling JSON Schemas.

Attributes

defaultVocabulary

the default vocabulary to use if none is given

downloader

the downloader to download referenced schemas or meta schemas

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def fromJson(json: String): F[DocumentValidator]

Load and resolve a JSON Schema from an JSON Source and build a DocumentValidator.

Load and resolve a JSON Schema from an JSON Source and build a DocumentValidator.

Attributes

def fromJson(json: Json): F[DocumentValidator]

Load and resolve a JSON

Load and resolve a JSON

Attributes

def fromUrl(url: String): F[DocumentValidator]

Load and resolve a JSON Schema from an URL and build a DocumentValidator.

Load and resolve a JSON Schema from an URL and build a DocumentValidator.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product