Skip to content

feat(schemas): add vector/detiler v1 schema - #196

Open
ghost wants to merge 3 commits into
masterfrom
feat/vector-detiler-schema
Open

ghost wants to merge 3 commits into
masterfrom
feat/vector-detiler-schema

Conversation

@ghost

@ghost ghost commented Oct 21, 2026

Copy link
Copy Markdown

Summary

  • Adds schemas/vector/detiler/v1.schema.json, mirroring detiler's current config/default.json / config/custom-environment-variables.json shape (openapiConfig, telemetry, server, redis) as a versioned schema instead of an ad-hoc node-config file.
  • Reuses common/telemetry/logger/v1 for the logger section; the redis section (including REDIS_KEY_PREFIX) is defined inline since detiler's field names (keyPrefix, enableSslAuth, sslPaths, database) intentionally diverge from common/redis.
  • This follows up on a review comment asking to formalize detiler's env vars as a schema rather than hand-maintained JSON.

Test plan

  • npm run validate
  • npm run build (confirms vectorDetilerV1/vectorDetilerV1Type export)
  • npx prettier --check schemas/vector/detiler/v1.schema.json

Mirrors detiler's existing config/custom-environment-variables.json
mapping as a versioned schema instead of an ad-hoc node-config file,
so the env-var-to-config mapping (including REDIS_KEY_PREFIX) is
validated and typed like other MapColonies services.
@github-actions

Copy link
Copy Markdown
Contributor

Hi it is me, your friendly bot helper! 👋
I've packed this commit for you 😊
You can install it like this:

{
  "dependencies": {
      "@map-colonies/schemas": "https://ghatmpstorage.blob.core.windows.net/npm-packages/schemas-6f4826a49d1afd4c014c08d7ea86bb4fd4c1726f.tgz"
  }
}

The link will expire in a week ⌛

Yosef Danan added 2 commits October 21, 2026 10:45
keyPrefix always resolves (default ""), and detiler's code treats it
as a non-optional string, so it should be required like the other
structural redis fields.
ca/key/cert always resolve to a string (default ""), and detiler's
connection-options builder calls readFileSync on them unconditionally
when SSL auth is enabled, so they must be typed as required strings.
@github-actions

Copy link
Copy Markdown
Contributor

Hi it is me, your friendly bot helper! 👋
I've packed this commit for you 😊
You can install it like this:

{
  "dependencies": {
      "@map-colonies/schemas": "https://ghatmpstorage.blob.core.windows.net/npm-packages/schemas-f77ee6931cb85e16f14c1cf5b3594698048e5aa5.tgz"
  }
}

The link will expire in a week ⌛

@github-actions

Copy link
Copy Markdown
Contributor

Hi it is me, your friendly bot helper! 👋
I've packed this commit for you 😊
You can install it like this:

{
  "dependencies": {
      "@map-colonies/schemas": "https://ghatmpstorage.blob.core.windows.net/npm-packages/schemas-6553e2b6e6824397336215f46c8821b68f84e73f.tgz"
  }
}

The link will expire in a week ⌛

@YD5463
YD5463 requested a review from NivGreenstein October 25, 2026 11:33

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants