Packages

package transformation

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. class Async3OperationFlatteningStage extends TransformationStep

    Flatten AsyncAPI 3.0 top-level operations into the 2.x channel.operations shape so that downstream resolution stages and emitters can traverse api.endPoints.flatMap(_.operations) uniformly across spec versions.

    Flatten AsyncAPI 3.0 top-level operations into the 2.x channel.operations shape so that downstream resolution stages and emitters can traverse api.endPoints.flatMap(_.operations) uniformly across spec versions.

    For each operation in AsyncApi.operations we look up the matching EndPoint in api.endPoints by path (the channel address, set by Async3OperationParser on the link via link.withPath(channel.path.value())) and append the operation to its operations list. We write to the api-level EndPoint, not to op.channel, because WebApiReferenceResolutionStage deep-copies the link target onto each operation — mutating op.channel would land on an orphan copy that consumers can't reach via api.endPoints. Idempotent via the Async3FlattenedOperation marker annotation.

  2. class Async3ReplyCycleDetectionStage extends TransformationStep

    Walks reply.channel.operations.reply chains starting from each top-level operation and raises a violation if the same operation is reached twice along a single reply chain.

    Walks reply.channel.operations.reply chains starting from each top-level operation and raises a violation if the same operation is reached twice along a single reply chain. Runs in both default and editing pipelines.

    Channel references on operations and replies are deep-copies of the root channel after WebApiReferenceResolutionStage, so their operations arrays are empty. We must look up the matching root channel in api.endPoints by path to find the operations attached to that channel (populated by Async3OperationFlatteningStage).

  3. class AsyncContentTypeResolutionStage extends TransformationStep
  4. class AsyncExamplePropagationResolutionStage extends TransformationStep with ExamplePropagationHelper
  5. class JsonMergePatchStage extends TransformationStep
  6. class ServerVariableExampleResolutionStage extends TransformationStep with ExamplePropagationHelper

Ungrouped