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:
- core
QaaS.Mockerconfiguration such as DataSources, Stubs, Controller, and Servers - packaged generator configuration used by Mocker projects through QaaS.Common.Generators
- processor configuration for packaged QaaS.Common.Processors and project-local processors referenced by Stubs
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:
If your project uses a different file name or a folder pattern, change the right-hand side to match your own YAML files.
Rider¶
- Open
File->Settings->Languages & Frameworks->Schemas and DTDs->JSON Schema Mappings. - Click the + button to add a new mapping.
- Select the Mocker schema file or URL.
- Map it to
mocker.qaas.yamlor to the YAML pattern your Mocker project uses.
⚠️ Important
Rider stores schema mappings per project. Repeat this setup for each Mocker repository you create.