Skip to content

Contract runtime suppression #19

Description

@rkolesnev-vineti

Sometimes we need to suppress contracts on the runtime level. Unfortunately, contracts are not free in a performance sense.

Draft API:

# Global suppression
Flows::Contracts.supress do
  # any contract execution is suppressed here, transformations are not applied
end

# Output contract local suppression
OperationWithContract.without_output_contract # => returns child class with output contract disabled.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions