Skip to content

IPipelineBehaviorContract

Defined in: packages/pipeline/src/interfaces/pipeline-behavior-contract.interface.ts:91

Declarative contract exposed by a behavior class to define ordering constraints and validation rules checked before the first execution.

optional order?: PipelineBehaviorOrder

Defined in: packages/pipeline/src/interfaces/pipeline-behavior-contract.interface.ts:98

Relative ordering constraints against other behaviors in the pipeline. Targets can be behavior classes or behavior ID / class names (strings). Can be a static rule or a function evaluated with the handler context to restrict constraints to applicable request kinds or configurations.


optional validate?: (context) => PipelineBehaviorDiagnostic[] | undefined

Defined in: packages/pipeline/src/interfaces/pipeline-behavior-contract.interface.ts:103

Validates effective options and declaration sources before the first execution. Returns an array of diagnostics if deterministic misconfigurations are found.

PipelineBehaviorValidationContext

PipelineBehaviorDiagnostic[] | undefined