Package

io.atomicbits.scraml.ramlparser

model

Permalink

package model

Created by peter on 26/08/16.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. model
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
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 UniqueId

    Permalink
  3. case class Action(actionType: Method, headers: ParsedParameters, queryParameters: ParsedParameters, body: Body, responses: Responses) extends Product with Serializable

    Permalink

    Created by peter on 10/02/16.

  4. case class ActualMediaType(value: String) extends MediaType with Product with Serializable

    Permalink
  5. case class Body(contentMap: Map[MediaType, BodyContent] = Map.empty) extends Product with Serializable

    Permalink

    Created by peter on 26/08/16.

  6. case class BodyContent(mediaType: MediaType, bodyType: Option[TypeRepresentation] = None, formParameters: ParsedParameters = new ParsedParameters()) extends Product with Serializable

    Permalink

    Created by peter on 10/02/16.

  7. sealed trait DateFormat extends AnyRef

    Permalink

    Created by peter on 19/08/16.

  8. 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.

  9. sealed trait Id extends AnyRef

    Permalink

    The base class for all Id's.

  10. trait MediaType extends AnyRef

    Permalink

    Created by peter on 26/08/16.

  11. sealed trait Method extends AnyRef

    Permalink

    Created by peter on 10/02/16.

  12. case class NativeId(id: String) extends UniqueId with Product with Serializable

    Permalink

    A native id is like a relative id, but it is not expected to have an absolute parent id.

    A native id is like a relative id, but it is not expected to have an absolute parent id. NativeId's should not be used in json-schema definitions. They have been added to cope with the native RAML 1.0 types that either have an NativeId or an ImplicitId.

    We cannot use the RootId concept here, because a NativeID has a free format whereas the RootId is a json-schema concept that has to meet strict formatting rules.

  13. case class Raml(title: String, mediaType: Option[MediaType], description: Option[String], version: Option[String], baseUri: Option[String], baseUriParameters: ParsedParameters, protocols: Option[Seq[String]], traits: Traits, types: Types, resources: List[Resource]) extends Product with Serializable

    Permalink

    Created by peter on 10/02/16.

  14. 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

  15. case class Resource(urlSegment: String, urlParameter: Option[ParsedParameter] = None, displayName: Option[String] = None, description: Option[String] = None, actions: List[Action] = List.empty, resources: List[Resource] = List.empty, parent: Option[Resource] = None) extends Product with Serializable

    Permalink

    Created by peter on 10/02/16.

  16. case class Response(status: StatusCode, headers: ParsedParameters, body: Body) extends Product with Serializable

    Permalink

    Created by peter on 10/02/16.

  17. case class Responses(responseMap: Map[StatusCode, Response] = Map.empty) extends Product with Serializable

    Permalink

    Created by peter on 26/08/16.

  18. case class RootId(hostPath: List[String], path: List[String], name: 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 "#".

  19. case class StatusCode(code: String) extends Product with Serializable

    Permalink

    Created by peter on 26/08/16.

  20. case class Traits(traitsMap: Map[String, JsObject]) extends Product with Serializable

    Permalink

    Created by peter on 10/02/16.

  21. sealed trait TypeModel extends AnyRef

    Permalink

    Created by peter on 26/09/16.

  22. case class TypeRepresentation(parsed: ParsedType, canonical: Option[TypeReference] = None) extends Product with Serializable

    Permalink

    Created by peter on 12/12/16.

  23. sealed trait UniqueId extends Id

    Permalink

    UniqueId's are Id's that are expected to be unique by value within a RAML document.

Value Members

  1. object Action extends Serializable

    Permalink
  2. object Body extends Serializable

    Permalink
  3. object BodyContentAsDefaultMediaType

    Permalink
  4. object BodyContentAsMediaTypeMap

    Permalink
  5. object DateOnlyTimeOnly extends DateFormat with Product with Serializable

    Permalink
  6. object Delete extends Method with Product with Serializable

    Permalink
  7. object Get extends Method with Product with Serializable

    Permalink
  8. object Head extends Method with Product with Serializable

    Permalink
  9. 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.

    It is not a UniqueId since may items can have ImplicitId's.

  10. object JsInclude

    Permalink

    Created by peter on 10/02/16.

  11. object JsonSchemaIdAnalyser

    Permalink
  12. object JsonSchemaIdExtractor

    Permalink

    Created by peter on 25/03/16.

  13. object JsonSchemaModel extends TypeModel with Product with Serializable

    Permalink
  14. object MediaType

    Permalink
  15. object Method

    Permalink
  16. object NoId extends AbsoluteId with Product with Serializable

    Permalink

    Placeholder object for an ID that points to nowhere.

  17. object NoMediaType extends MediaType with Product with Serializable

    Permalink
  18. object Options extends Method with Product with Serializable

    Permalink
  19. object Patch extends Method with Product with Serializable

    Permalink
  20. object Post extends Method with Product with Serializable

    Permalink
  21. object Put extends Method with Product with Serializable

    Permalink
  22. object RFC2616 extends DateFormat with Product with Serializable

    Permalink
  23. object RFC3339DateTime extends DateFormat with Product with Serializable

    Permalink
  24. object RFC3339FullDate extends DateFormat with Product with Serializable

    Permalink
  25. object RFC3339PartialTime extends DateFormat with Product with Serializable

    Permalink
  26. object Raml extends Serializable

    Permalink
  27. object RamlModel extends TypeModel with Product with Serializable

    Permalink
  28. object RefExtractor

    Permalink
  29. object Resource extends Serializable

    Permalink
  30. object Response extends Serializable

    Permalink
  31. object Responses extends Serializable

    Permalink
  32. object RootId extends Serializable

    Permalink
  33. object StatusCode extends Serializable

    Permalink
  34. object Trace extends Method with Product with Serializable

    Permalink
  35. object Traits extends Serializable

    Permalink
  36. object TypeModel

    Permalink
  37. package canonicaltypes

    Permalink
  38. package parsedtypes

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped