Add runtime request schemas
This commit is contained in:
parent
e9d2a83fa9
commit
14a2ea764b
10 changed files with 211 additions and 2 deletions
|
|
@ -28,7 +28,9 @@
|
|||
"schemas/gamecult.eve.plugin_advertisement.v1.schema.json",
|
||||
"schemas/gamecult.eve.plugin_abi_fixture.v1.schema.json",
|
||||
"schemas/gamecult.eve.plugin_abi.request.v1.schema.json",
|
||||
"schemas/gamecult.eve.plugin_abi.response.v1.schema.json"
|
||||
"schemas/gamecult.eve.plugin_abi.response.v1.schema.json",
|
||||
"schemas/gamecult.eve.runtime_release_request.v1.schema.json",
|
||||
"schemas/gamecult.eve.runtime_capture_request.v1.schema.json"
|
||||
],
|
||||
"replacementProof": "EveConformance publishes the schema catalog and copied schema documents needed by conformance, plugin, provider, and runtime consumers."
|
||||
},
|
||||
|
|
@ -69,6 +71,8 @@
|
|||
"gamecult.eve.plugin_abi_fixture.v1",
|
||||
"gamecult.eve.plugin_abi.request.v1",
|
||||
"gamecult.eve.plugin_abi.response.v1",
|
||||
"gamecult.eve.runtime_release_request.v1",
|
||||
"gamecult.eve.runtime_capture_request.v1",
|
||||
"gamecult.eve.provider_advertisement.v1",
|
||||
"gamecult.eve.runtime_capability.v1"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@
|
|||
"gamecult.eve.plugin_abi_fixture.v1": "schemas/gamecult.eve.plugin_abi_fixture.v1.schema.json",
|
||||
"gamecult.eve.plugin_advertisement.v1": "schemas/gamecult.eve.plugin_advertisement.v1.schema.json",
|
||||
"gamecult.eve.runtime_capability.v1": "schemas/gamecult.eve.runtime_capability.v1.schema.json",
|
||||
"gamecult.eve.runtime_release_request.v1": "schemas/gamecult.eve.runtime_release_request.v1.schema.json",
|
||||
"gamecult.eve.runtime_capture_request.v1": "schemas/gamecult.eve.runtime_capture_request.v1.schema.json",
|
||||
"gamecult.eve.provider_scenario.v1": "schemas/gamecult.eve.provider_scenario.v1.schema.json",
|
||||
"gamecult.eve.provider_advertisement.v1": "schemas/gamecult.eve.provider_advertisement.v1.schema.json"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1321,6 +1321,9 @@ function compareCaptureContract(expected, actual, label) {
|
|||
errors.push(`${label}.${key}:expected ${expected[key] || ""} got ${actual[key] || ""}`);
|
||||
}
|
||||
}
|
||||
if (actual.requestSchema && !manifest.schemas?.[actual.requestSchema]) {
|
||||
errors.push(`${label}.requestSchema:${actual.requestSchema}:missing-schema-catalog-entry`);
|
||||
}
|
||||
return errors;
|
||||
}
|
||||
|
||||
|
|
@ -1363,6 +1366,9 @@ function compareReleaseContract(expected, actual, label) {
|
|||
errors.push(`${label}.${key}:expected ${expected[key] || ""} got ${actual[key] || ""}`);
|
||||
}
|
||||
}
|
||||
if (actual.requestSchema && !manifest.schemas?.[actual.requestSchema]) {
|
||||
errors.push(`${label}.requestSchema:${actual.requestSchema}:missing-schema-catalog-entry`);
|
||||
}
|
||||
for (const key of ["packageRoot", "versionSource", "requestBuilder"]) {
|
||||
if (actual[key] && !existsSync(path.join(repoRoot, actual[key]))) {
|
||||
errors.push(`${label}.${key}:${actual[key]}:missing`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue