arazzo: 1.0.1
info:
  title: Pet adoption
  version: 1.0.0
sourceDescriptions:
  - name: petstore
    type: openapi
    url: ./petstore.openapi.yaml
workflows:
  - workflowId: adopt-a-pet
    inputs:
      $ref: ./schemas/adoption.yaml
    steps:
      - stepId: find-pet
        operationId: getPetById
        parameters:
          - reference: $components.parameters.petId
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          name: $response.body#/name
      - stepId: adopt
        operationId: adoptPet
        parameters:
          - reference: $components.parameters.petId
components:
  parameters:
    petId:
      name: petId
      in: path
      value: $inputs.petId
