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: Parameters, queryParameters: Parameters, body: Body, responses: Responses, queryString: Option[QueryString] = None) 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: Parameters = new Parameters()) 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. case class MergeApplication(name: String, substitutions: Seq[MergeSubstitution]) extends Product with Serializable

    Permalink
  12. case class MergeApplicationMap(mergeApplications: Seq[MergeApplication] = Seq.empty) extends Product with Serializable

    Permalink
  13. case class MergeSubstitution(name: String, value: JsValue) extends Product with Serializable

    Permalink

    In:

    In:

    /books: type: { searchableCollection: { queryParamName: title, fallbackParamName: digest_all_fields } } get: is: [ secured: { tokenName: access_token }, paged: { maxPages: 10 } ]

    these are the MergeSubstitutions:

    MergeSubstitution(tokenName, access_token) MergeSubstitution(maxPages, 10)

    and the MergeApplications:

    MergeApplication(secured, ...) MergeApplication(paged, ...)

  14. sealed trait Method extends AnyRef

    Permalink

    Created by peter on 10/02/16.

  15. trait ModelMerge extends AnyRef

    Permalink

    Created by peter on 25/05/17.

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

  17. case class Parameter(name: String, parameterType: TypeRepresentation, required: Boolean = true) extends Product with Serializable

    Permalink

    Created by peter on 10/02/16.

  18. case class Parameters(valueMap: Map[String, Parameter] = Map.empty) extends Product with Serializable

    Permalink
  19. case class QueryString(queryStringType: TypeRepresentation) extends Product with Serializable

    Permalink

    Created by peter on 14/05/17.

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

    Permalink

    Created by peter on 10/02/16.

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

  22. sealed trait ReplaceOp extends AnyRef

    Permalink
  23. case class ReplaceString(toReplace: String, matchString: String, operations: Seq[ReplaceOp], partial: Boolean) extends Product with Serializable

    Permalink
  24. case class Resource(urlSegment: String, urlParameter: Option[Parameter] = 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.

  25. case class ResourceTypes(resourceTypesMap: Map[String, JsObject]) extends ModelMerge with Product with Serializable

    Permalink

    Created by peter on 25/05/17.

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

    Permalink

    Created by peter on 10/02/16.

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

    Permalink

    Created by peter on 26/08/16.

  28. 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 "#".

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

    Permalink

    Created by peter on 26/08/16.

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

    Permalink

    Created by peter on 10/02/16.

  31. sealed trait TypeModel extends AnyRef

    Permalink

    Created by peter on 26/09/16.

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

    Permalink

    Created by peter on 12/12/16.

  33. 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 LowerCamelcase extends ReplaceOp with Product with Serializable

    Permalink
  15. object LowerHyphencase extends ReplaceOp with Product with Serializable

    Permalink
  16. object LowerUnderscorecase extends ReplaceOp with Product with Serializable

    Permalink
  17. object Lowercase extends ReplaceOp with Product with Serializable

    Permalink
  18. object MediaType

    Permalink
  19. object MergeApplication extends Serializable

    Permalink
  20. object MergeApplicationMap extends Serializable

    Permalink
  21. object Method

    Permalink
  22. object NoId extends AbsoluteId with Product with Serializable

    Permalink

    Placeholder object for an ID that points to nowhere.

  23. object NoMediaType extends MediaType with Product with Serializable

    Permalink
  24. object NoOp extends ReplaceOp with Product with Serializable

    Permalink
  25. object Options extends Method with Product with Serializable

    Permalink
  26. object Parameters extends Serializable

    Permalink

    Created by peter on 26/08/16.

  27. object Patch extends Method with Product with Serializable

    Permalink
  28. object Pluralize extends ReplaceOp with Product with Serializable

    Permalink
  29. object Post extends Method with Product with Serializable

    Permalink
  30. object Put extends Method with Product with Serializable

    Permalink
  31. object RFC2616 extends DateFormat with Product with Serializable

    Permalink
  32. object RFC3339DateTime extends DateFormat with Product with Serializable

    Permalink
  33. object RFC3339FullDate extends DateFormat with Product with Serializable

    Permalink
  34. object RFC3339PartialTime extends DateFormat with Product with Serializable

    Permalink
  35. object Raml extends Serializable

    Permalink
  36. object RamlModel extends TypeModel with Product with Serializable

    Permalink
  37. object RefExtractor

    Permalink
  38. object ReplaceOp

    Permalink
  39. object ReplaceString extends Product with Serializable

    Permalink
  40. object Resource extends Serializable

    Permalink
  41. object ResourceTypes extends Serializable

    Permalink
  42. object Response extends Serializable

    Permalink
  43. object Responses extends Serializable

    Permalink
  44. object RootId extends Serializable

    Permalink
  45. object Singularize extends ReplaceOp with Product with Serializable

    Permalink
  46. object StatusCode extends Serializable

    Permalink
  47. object Trace extends Method with Product with Serializable

    Permalink
  48. object Traits extends Serializable

    Permalink
  49. object TypeModel

    Permalink
  50. object UpperCamelcase extends ReplaceOp with Product with Serializable

    Permalink
  51. object UpperHyphencase extends ReplaceOp with Product with Serializable

    Permalink
  52. object UpperUnderscorecase extends ReplaceOp with Product with Serializable

    Permalink
  53. object Uppercase extends ReplaceOp with Product with Serializable

    Permalink
  54. package canonicaltypes

    Permalink
  55. package parsedtypes

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped