Multi document support

With this feature, you can to declare manifests in the same file with a triple dash delimiter ---.

#data/my-manifest.yaml
version: v1.3
type: Config
body:
  constants:
    dogName: "doggie"

---

version: v1.3
type: Stub
rules:
  - request:
      path: /api/pet/{petId}
      method: GET
    response:
      headers:
        content-type: application/json
      body: |
        {
          "id": ${path.petId},
          "name": "${constants.dogName}",
          "category": {
            "id": 17,
            "name": "Dogs"
          }
        }

See yaml docs about multi-document for more info.

Last updated