BotNetwork

JSON Schema for bot configuration

Validate config at boot; fail fast on typos.

Guide1 min readUpdated

Why it matters

A JSON Schema (or Zod/pydantic model) for bot config catches missing intents, bad URLs and typo'd env keys before production traffic.

Practical steps

  1. Define required vs optional keys with documented defaults.
  2. Validate on boot and fail fast with a clear error.
  3. Keep .env.example in sync with the schema.
  4. Version the schema when you add breaking keys.
  5. Reject unknown keys in production to catch typos.

Watch out for

  • Silent defaults that enable privileged intents.
  • Schemas that accept http:// webhook URLs in prod.

Related comparisons and tools