Skip to content

Mocker IDE Setup

QaaS.Mocker can be configured in YAML or in C# (Configuration as Code). This page focuses on the YAML experience for Mocker projects.

If your team keeps mock definitions in mocker.qaas.yaml, configure your IDE with the Mocker JSON schema so you get validation, completion, and structure-aware suggestions while editing.

Mocker Schema

The Mocker schema covers:

What you get after mapping the schema

After you attach the schema to your Mocker YAML files, your IDE can provide:

  • syntax highlighting
  • auto-completion
  • validation errors for invalid values or missing required fields
  • contextual suggestions based on the current configuration section

Tip

To trigger suggestions manually, use Ctrl + Space.

VS Code

Open settings.json and add a YAML schema mapping for your Mocker files:

"yaml.schemas": {
  "../../assets/schemas/mocker-family-schema.json": "mocker.qaas.yaml"
}

If your project uses a different file name or a folder pattern, change the right-hand side to match your own YAML files.

Rider

  1. Open File -> Settings -> Languages & Frameworks -> Schemas and DTDs -> JSON Schema Mappings.
  2. Click the + button to add a new mapping.
  3. Select the Mocker schema file or URL.
  4. Map it to mocker.qaas.yaml or to the YAML pattern your Mocker project uses.

⚠️ Important

Rider stores schema mappings per project. Repeat this setup for each Mocker repository you create.