fix(data-plane): preserve immutable zone product v1

This commit is contained in:
Codex
2026-07-21 12:48:49 +03:00
parent 343812b90d
commit 92d292ce87
6 changed files with 67 additions and 27 deletions
@@ -4,5 +4,5 @@ Adds the bounded, offset-paged `gelios.geozone` read capability and maps a
complete account generation into `map.gelios-geofences.current.v1`.
Gelios account geo-objects are deliberately not published into the normative
`map.zones.current.v1` Department of Transport dataset. Independent authorities
`map.zones.current.v2` Department of Transport dataset. Independent authorities
must never share one replace generation.
@@ -46,12 +46,12 @@ assert.deepEqual(validateProviderPackage(geliosProviderPackageV6), { ok: true, e
const zonesProduct = geliosProviderPackageV6.dataProducts.find((product) => product.id === "map.gelios-geofences.current.v1");
const registeredZonesProduct = JSON.parse(await readFile(new URL(
"../../../services/external-data-plane/definitions/map.zones.current.v1.json",
"../../../services/external-data-plane/definitions/map.zones.current.v2.json",
import.meta.url,
), "utf8"));
assert.deepEqual(zonesProduct.semanticTypes, ["map.zone"]);
assert.equal(zonesProduct.fieldContracts.geometry.type, "geometry");
assert.equal(registeredZonesProduct.version, "1.1.0");
assert.equal(registeredZonesProduct.version, "2.0.0");
assert.deepEqual(registeredZonesProduct.fieldContracts.dataset_authority.enum, ["moscow-department-of-transport"]);
assert.deepEqual(registeredZonesProduct.fieldContracts.source_adapter.enum, [
"depttrans-mmap-snapshot-v1",