-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfigs.json
More file actions
34 lines (34 loc) · 2.91 KB
/
Copy pathconfigs.json
File metadata and controls
34 lines (34 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"$comment": "Named generator configurations for the api-test-generator. The active config is selected via the CONFIG env var (default: camunda-oca). Each configs/<name>/ directory holds the spec pin, the domain/filter/request-defaults files, and the per-emitter codegen tree (configs/<name>/codegen/<emitter>/config.json + configs/<name>/codegen/emitters.json) for that target API. This file is the source of truth for which configs exist and their metadata; loader code resolves the per-config files by convention from configs/<name>/.",
"default": "camunda-oca",
"configs": {
"camunda-oca": {
"description": "Camunda 8 Orchestration Cluster API",
"spec": {
"source": "github:camunda/camunda",
"repoUrl": "https://github.com/camunda/camunda.git",
"entryFile": "rest-api.yaml",
"$comment": "Network-fetch mode: fetch-spec passes --ref $SPEC_REF and --repo-url to camunda-schema-bundler. The in-repo spec path (zeebe/gateway-protocol/src/main/proto/v2) is derived from the ref by the bundler itself and cannot be overridden via the CLI. Pinned ref + expected hash live in configs/camunda-oca/spec-pin.json (kept as a separate file to preserve the spec-pin bump procedure documented in tests/regression/spec-pin.setup.ts)."
},
"planner": {
"$comment": "Per-config planner caps (#292). Field names mirror the internal option keys (`maxChainAlternatives`, `maxVariantsPerEndpoint`) so the config key === the option key — no translation layer. The two inner `maxChainAlternatives: 1` caps inside variant planning are NOT exposed here; they are load-bearing strategy constants (one producer chain per variant leaf) documented in path-analyser/src/scenarioGenerator.ts.",
"maxChainAlternatives": 20,
"maxVariantsPerEndpoint": 20
}
},
"camunda-hub": {
"description": "Camunda Hub Public API V2 (request-validation + positive Playwright suite)",
"spec": {
"source": "github:camunda/camunda-hub",
"localSpecDir": "../camunda-hub/restapi/public-api/src/main/resources/openapi/v2",
"entryFile": "rest-api.yaml",
"$comment": "Local-bundle mode: the hub spec lives in the private camunda/camunda-hub repo at restapi/public-api/src/main/resources/openapi/v2/ — a non-default in-repo path the bundler's network-fetch CLI cannot target. fetch-spec instead passes --spec-dir <localSpecDir> (resolved relative to the repo root) and bundles from the sibling clone, matching docker/start-hub.sh's ../camunda-hub convention. SPEC_REF is ignored in this mode; check out the desired ref in the sibling clone before running fetch-spec. Pinned ref + expected hash live in configs/camunda-hub/spec-pin.json."
},
"planner": {
"$comment": "Same caps as camunda-oca; load-bearing for the positive (Playwright) suite's BFS chain planning.",
"maxChainAlternatives": 20,
"maxVariantsPerEndpoint": 20
}
}
}
}