Package

io.atomicbits.scraml

jsonschemaparser

Permalink

package jsonschemaparser

Visibility
  1. Public
  2. All

Type Members

  1. case class AbsoluteFragmentId(root: RootId, fragments: List[String]) extends AbsoluteId with Product with Serializable

    Permalink

    This is the absolute version of a fragment id.

    This is the absolute version of a fragment id. It is prepended with its root's achor. E.g. "http://atomicbits.io/schema/User.json#/some/schema/path/license"

    root

    The root of this absolute fragment id.

    fragments

    The path that composes the fragment id.

  2. trait AbsoluteId extends Id

    Permalink
  3. case class FragmentId(fragments: List[String]) extends Id with Product with Serializable

    Permalink

    A fragment id identifies its schema uniquely by the schema path (JSON path in the original JSON representation) from its nearest root schema towards itself.

    A fragment id identifies its schema uniquely by the schema path (JSON path in the original JSON representation) from its nearest root schema towards itself. In other words, the fragment id should always match this schema path and is redundant from that point of view. It is of the form "#/some/schema/path/license"

    fragments

    The path that composes the fragment id.

  4. sealed trait Id extends AnyRef

    Permalink

    Base class for a schema id.

    Base class for a schema id. In a correctly shaped schema, all schema ids can be expanded to their root-form.

  5. case class JsonSchemaParseException(message: String) extends Exception with Product with Serializable

    Permalink

    Created by peter on 6/06/15, Atomic BITS (http://atomicbits.io).

  6. case class NameId() extends Id with Product with Serializable

    Permalink
  7. case class RelativeId(id: String) extends Id with Product with Serializable

    Permalink

    A relative id identifies its schema uniquely when expanded with the anchor of its root schema.

    A relative id identifies its schema uniquely when expanded with the anchor of its root schema. Its root schema is its nearest parent that has an absolute id. A schema with a relative id is the root for its child-schemas that don't have an absolute or relative id. A relative id is of the form "contact/ShippingAddress.json".

    id

    The string representation of the id

  8. case class RootId(id: String) extends AbsoluteId with Product with Serializable

    Permalink

    An absolute id uniquely identifies a schema.

    An absolute id uniquely identifies a schema. A schema with an absolute id is the root for its child-schemas that don't have an absolute or relative id. An absolute id is of the form "http://atomicbits.io/schema/User.json" and often it ends with a "#".

    id

    The string representation of the id

Value Members

  1. object IdAnalyser

    Permalink
  2. object IdExtractor

    Permalink

    Created by peter on 1/06/15, Atomic BITS (http://atomicbits.io).

  3. object ImplicitId extends Id with Product with Serializable

    Permalink

    An implicit id marks the absense of an id.

    An implicit id marks the absense of an id. It implies that the schema should be uniquely identified by the schema path (JSON path in the original JSON representation) from its nearest root schema towards itself. In other words, an implicit id is a fragment id that hasn't been set.

  4. object JsonSchemaParser

    Permalink

    Created by peter on 1/06/15, Atomic BITS (http://atomicbits.io).

  5. object RefExtractor

    Permalink
  6. package model

    Permalink

Ungrouped