Skip to content

contract validation in long chains #24

Description

@markburns

Contract validation across a chain like the following does not spot the promise in Promiser and raises an error about Expecter needing it.

organize -> Promiser, (If -> chain(Expecter))

organize \
  Promiser.promising(:thing),
  self.if(
    :condition,
    then: ExpectingThing = chain
      'ChainedThings',
      Expecter
    ),
    else: SomethingElse
  )

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