amf.apicontract.internal.spec.async.parser.document
AsyncApi3DocumentParser
Companion object AsyncApi3DocumentParser
class AsyncApi3DocumentParser extends AsyncApiDocumentParser
AsyncAPI 3.0 document parser.
Extends AsyncApiDocumentParser with 3.0-specific top-level operation parsing.
The key structural differences from 2.x:
channelsis an object-map keyed by user-defined channel id (not path)channelsis OPTIONAL in 3.0 (in 2.x it is mandatory)operationsis a NEW top-level map keyed by operationId- Operations reference their channel via
$$refrather than being nested under channels
parseApi is fully reimplemented (mirroring AsyncApiDocumentParser.parseApi) instead of
delegating to super.parseApi(map), because the parent unconditionally raises
MandatoryChannelsProperty when channels is missing. AsyncAPI 3.0 explicitly marks
channels as OPTIONAL — see https://www.asyncapi.com/docs/reference/specification/v3.0.0
(AsyncAPI Object section: "channels" is listed without the REQUIRED marker). The override
preserves every other step from the parent (info, id, externalDocs, servers, tags,
defaultContentType, AnnotationParser, closedShape) and additionally parses the new
top-level operations map.
- Alphabetic
- By Inheritance
- AsyncApi3DocumentParser
- AsyncApiDocumentParser
- OasLikeDeclarationsHelper
- AsyncApiSpecParser
- WebApiBaseSpecParser
- DeclarationKeyCollector
- SpecParserOps
- QuickFieldParserOps
- BaseSpecParser
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AsyncApi3DocumentParser(root: Root, spec: Spec, declarationParser: AsyncDeclarationParser)(implicit ctx: AsyncWebApiContext)
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from AsyncApi3DocumentParser to any2stringadd[AsyncApi3DocumentParser] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (AsyncApi3DocumentParser, B)
- Implicit
- This member is added by an implicit conversion from AsyncApi3DocumentParser to ArrowAssoc[AsyncApi3DocumentParser] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addDeclarationKey(key: DeclarationKey): Unit
- Definition Classes
- DeclarationKeyCollector
-
def
addDeclarationsToModel(model: DeclaresModel, declares: Seq[DomainElement]): Unit
- Attributes
- protected
- Definition Classes
- DeclarationKeyCollector
-
def
addDeclarationsToModel(model: DeclaresModel)(implicit ctx: DeclarationContext): Unit
- Attributes
- protected
- Definition Classes
- DeclarationKeyCollector
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
checkBalancedParams(path: String, value: YNode, node: AmfObject, property: String, ctx: WebApiContext): Unit
- Attributes
- protected
- Definition Classes
- SpecParserOps
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
implicit
val
ctx: AsyncWebApiContext
- Definition Classes
- AsyncApi3DocumentParser → AsyncApiDocumentParser → BaseSpecParser
-
val
definitionsKey: String
- Attributes
- protected
- Definition Classes
- AsyncApiDocumentParser → OasLikeDeclarationsHelper
-
def
ensuring(cond: (AsyncApi3DocumentParser) ⇒ Boolean, msg: ⇒ Any): AsyncApi3DocumentParser
- Implicit
- This member is added by an implicit conversion from AsyncApi3DocumentParser to Ensuring[AsyncApi3DocumentParser] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (AsyncApi3DocumentParser) ⇒ Boolean): AsyncApi3DocumentParser
- Implicit
- This member is added by an implicit conversion from AsyncApi3DocumentParser to Ensuring[AsyncApi3DocumentParser] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): AsyncApi3DocumentParser
- Implicit
- This member is added by an implicit conversion from AsyncApi3DocumentParser to Ensuring[AsyncApi3DocumentParser] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): AsyncApi3DocumentParser
- Implicit
- This member is added by an implicit conversion from AsyncApi3DocumentParser to Ensuring[AsyncApi3DocumentParser] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
getAnnotationsFromMap(map: YMap, key: String): Annotations
- Attributes
- protected
- Definition Classes
- SpecParserOps
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
parseApi(map: YMap): AsyncApi
- Attributes
- protected
- Definition Classes
- AsyncApi3DocumentParser → AsyncApiDocumentParser
-
def
parseChannels(entry: YMapEntry, api: AsyncApi): Unit
- Attributes
- protected
- Definition Classes
- AsyncApiDocumentParser
-
def
parseDocument(): Document
- Definition Classes
- AsyncApiDocumentParser
-
def
parseTopLevelOperations(map: YMap, api: AsyncApi): Unit
Parse the top-level
operationsmap and populate AsyncApi.operations.Parse the top-level
operationsmap and populate AsyncApi.operations.3.0 allows each top-level operations entry to be either an inline Operation Object or a
{ $$ref: '#/components/operations/<id>' }referring to a declared concrete operation.- Attributes
- protected
-
def
parseTypeDeclarations(map: YMap, declarationKeysHolder: Option[DeclarationKeyCollector])(implicit ctx: OasLikeWebApiContext): List[AnyShape]
- Definition Classes
- OasLikeDeclarationsHelper
-
def
parseTypeDeclarations(map: YMap)(implicit ctx: OasLikeWebApiContext): List[AnyShape]
- Definition Classes
- OasLikeDeclarationsHelper
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
validateNames()(implicit ctx: OasLikeWebApiContext): Unit
- Definition Classes
- OasLikeDeclarationsHelper
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (AsyncApi3DocumentParser, B)
- Implicit
- This member is added by an implicit conversion from AsyncApi3DocumentParser to ArrowAssoc[AsyncApi3DocumentParser] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from AsyncApi3DocumentParser to StringFormat[AsyncApi3DocumentParser] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)instead ofvalue.formatted(formatString), or use thef""string interpolator. In Java 15 and later,formattedresolves to the new method in String which has reversed parameters.