JsonSchema

com.alecdorrington.annotatedtextformat.JsonSchema
object JsonSchema

How the format's JSON Schemas are put together around the schema of an annotation's value, which JSON Schema, having no type parameters, cannot leave open.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
JsonSchema.type

Members list

Value members

Concrete methods

def around(value: Json)(wrap: Json => Json): Json

A whole schema, declaring its dialect, made by wrap around the schema value. The definitions of value, under $defs, are lifted to the root, so that its references to them, as #/$defs/name, still resolve; unless value has an $id, against which they resolve already.

A whole schema, declaring its dialect, made by wrap around the schema value. The definitions of value, under $defs, are lifted to the root, so that its references to them, as #/$defs/name, still resolve; unless value has an $id, against which they resolve already.

Attributes

Concrete fields

val dialect: String

The dialect of JSON Schema in which the schemas are written.

The dialect of JSON Schema in which the schemas are written.

Attributes