class Raml08WebApiContext extends RamlWebApiContext
- Alphabetic
- By Inheritance
- Raml08WebApiContext
- RamlWebApiContext
- RamlSpecAwareContext
- WebApiContext
- PlatformSecrets
- SpecAwareContext
- ParserContext
- Serializable
- Serializable
- Product
- Equals
- ErrorHandler
- ParseErrorHandler
- IllegalTypeHandler
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Raml08WebApiContext(loc: String, refs: Seq[ParsedReference], wrapped: ParserContext, ds: Option[RamlWebApiDeclarations] = None, eh: Option[ErrorHandler] = None)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
adapt[T](path: String)(k: (RamlWebApiContext) ⇒ T): T
Adapt this context for a nested library, used when evaluating resource type / traits Using a path to the library whose context is going to be looked up, e.g.
Adapt this context for a nested library, used when evaluating resource type / traits Using a path to the library whose context is going to be looked up, e.g. lib.TypeA
- Definition Classes
- RamlWebApiContext
-
def
addSonRef(ref: BaseUnit): Raml08WebApiContext.this.type
- Definition Classes
- ParserContext
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
basePath(path: String): String
- Definition Classes
- WebApiContext
-
def
checkDuplicates(node: String, ast: YMap, shape: String, annotation: Boolean): Set[String]
- Definition Classes
- WebApiContext
-
def
clone(declarations: RamlWebApiDeclarations): RamlWebApiContext
- Attributes
- protected
- Definition Classes
- Raml08WebApiContext → RamlWebApiContext
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
closedRamlTypeShape(shape: Shape, ast: YMap, shapeType: String, annotation: Boolean = false): Unit
raml types nodes are different from other shapes because they can have 'custom facets' essentially, client defined constraints expressed as additional properties syntactically in the type definition.
raml types nodes are different from other shapes because they can have 'custom facets' essentially, client defined constraints expressed as additional properties syntactically in the type definition. The problem is that they cannot be recognised just looking into the AST as we do with annotations, so we need to first, compute them, and then, add them as additional valid properties to the set of properties that can be defined in the AST node
- Definition Classes
- RamlWebApiContext
-
def
closedShape(node: String, ast: YMap, shape: String, annotation: Boolean = false): Unit
Validate closed shape.
Validate closed shape.
- Definition Classes
- WebApiContext
-
def
computeJsonSchemaVersion(rootAst: YNode): JSONSchemaVersion
- Definition Classes
- WebApiContext
-
def
copyWithSonsReferences(): ParserContext
- Definition Classes
- ParserContext
-
val
declarations: RamlWebApiDeclarations
- Definition Classes
- RamlWebApiContext → WebApiContext
-
val
eh: Option[ErrorHandler]
- Definition Classes
- Raml08WebApiContext → RamlWebApiContext → WebApiContext → ParserContext
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
factory: RamlSpecVersionFactory
- Definition Classes
- Raml08WebApiContext → RamlWebApiContext → SpecAwareContext
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findDeclarations(path: Seq[String], declarations: RamlWebApiDeclarations): RamlWebApiDeclarations
- Attributes
- protected
- Definition Classes
- RamlWebApiContext
-
def
findJsonSchema(url: String): Option[AnyShape]
- Definition Classes
- WebApiContext
-
def
findLocalJSONPath(path: String): Option[(String, YNode)]
- Definition Classes
- WebApiContext
-
def
forLocation(newLocation: String): ParserContext
- Definition Classes
- ParserContext
-
val
futureDeclarations: FutureDeclarations
- Definition Classes
- ParserContext
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
var
globalMediatype: Boolean
- Definition Classes
- RamlWebApiContext
-
var
globalSpace: Map[String, Any]
- Definition Classes
- ParserContext
-
def
guiKey(message: String, location: Option[String], lexical: Option[LexicalInformation]): String
- Definition Classes
- ErrorHandler
-
def
handle(node: YPart, e: SyamlException): Unit
- Definition Classes
- ErrorHandler → ParseErrorHandler
-
def
handle[T](error: YError, defaultValue: T): T
- Definition Classes
- ErrorHandler → IllegalTypeHandler
-
def
ignore(shape: String, property: String): Boolean
- Definition Classes
- RamlWebApiContext → WebApiContext
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
link(node: YNode): Either[String, YNode]
- Definition Classes
- RamlWebApiContext → WebApiContext
-
val
loc: String
- Definition Classes
- RamlWebApiContext → WebApiContext
-
var
localJSONSchemaContext: Option[YNode]
- Definition Classes
- WebApiContext
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
normalizedJsonPointer(url: String): String
- Attributes
- protected
- Definition Classes
- WebApiContext
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
parseRemoteJSONPath(fileUrl: String)(implicit ctx: OasWebApiContext): Option[AnyShape]
- Definition Classes
- WebApiContext
-
def
parseRemoteOasParameter(fileUrl: String, parentId: String)(implicit ctx: OasWebApiContext): Option[OasParameter]
- Definition Classes
- WebApiContext
-
val
parserCount: Int
- Definition Classes
- ParserContext
-
def
part(error: YError): YPart
- Attributes
- protected
- Definition Classes
- ErrorHandler
-
val
platform: Platform
- Definition Classes
- PlatformSecrets
-
val
refs: Seq[ParsedReference]
- Definition Classes
- ParserContext
-
def
registerJsonSchema(url: String, shape: AnyShape): Unit
- Definition Classes
- WebApiContext
-
def
reportConstraint(id: String, node: String, property: Option[String], message: String, lexical: Option[LexicalInformation], level: String, location: Option[String]): Unit
- Definition Classes
- ParserContext → ErrorHandler
-
var
reportDisambiguation: Set[String]
- Definition Classes
- ParserContext
-
def
resolvedPath(base: String, str: String): String
- Definition Classes
- WebApiContext
-
val
rootContextDocument: String
- Definition Classes
- ParserContext
-
def
setJsonSchemaAST(value: YNode): Unit
- Definition Classes
- WebApiContext
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
syntax: SpecSyntax
- Definition Classes
- Raml08WebApiContext → WebApiContext
-
val
vendor: Vendor
- Definition Classes
- Raml08WebApiContext → WebApiContext
-
def
violation(specification: ValidationSpecification, node: String, message: String): Unit
- Definition Classes
- ErrorHandler
-
def
violation(specification: ValidationSpecification, node: String, message: String, ast: YPart): Unit
- Definition Classes
- ErrorHandler
-
def
violation(specification: ValidationSpecification, node: String, property: Option[String], message: String, ast: YPart): Unit
- Definition Classes
- ErrorHandler
-
def
violation(specification: ValidationSpecification, node: String, message: String, location: String): Unit
- Definition Classes
- ErrorHandler
-
def
violation(specification: ValidationSpecification, element: AmfObject, target: Option[String], message: String): Unit
- Definition Classes
- ErrorHandler
-
def
violation(specification: ValidationSpecification, node: String, message: String, annotations: Annotations): Unit
- Definition Classes
- ErrorHandler
-
def
violation(specification: ValidationSpecification, node: String, property: Option[String], message: String, lexical: Option[LexicalInformation], location: Option[String]): Unit
- Definition Classes
- ErrorHandler
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
warning(specification: ValidationSpecification, node: String, message: String, annotations: Annotations): Unit
- Definition Classes
- ErrorHandler
-
def
warning(specification: ValidationSpecification, node: String, message: String, ast: YPart): Unit
- Definition Classes
- ErrorHandler
-
def
warning(specification: ValidationSpecification, node: String, property: Option[String], message: String, ast: YPart): Unit
- Definition Classes
- ErrorHandler
-
def
warning(specification: ValidationSpecification, element: AmfObject, target: Option[String], message: String): Unit
- Definition Classes
- ErrorHandler
-
def
warning(specification: ValidationSpecification, node: String, property: Option[String], message: String, lexical: Option[LexicalInformation], location: Option[String]): Unit
- Definition Classes
- ErrorHandler