[feature] provide jsonschema definition for Komodo sync resources #1553

Open
opened 2026-03-22 17:34:38 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @ankushg on GitHub (Jan 7, 2026).

I've got a mostly-gitops workflow going, and would love to have some amount of schema validation for my komodo sync resources: https://komo.do/docs/resources/sync-resources

Komodo is the only part of my stack that uses TOML, and I've already made a few silly mistakes that could easily have been caught by a validation step 😅

It looks like it might be possible to generate a jsonschema definition from either:

and there's plenty of tooling to validate schema for toml (including both tombi and taplo) which can be run in vscode or via cli!

Originally created by @ankushg on GitHub (Jan 7, 2026). I've got a mostly-gitops workflow going, and would _love_ to have some amount of schema validation for my komodo sync resources: https://komo.do/docs/resources/sync-resources Komodo is the only part of my stack that uses TOML, and I've already made a few silly mistakes that could easily have been caught by a validation step 😅 It looks like it might be possible to generate a jsonschema definition from either: - [Rust definitions](https://github.com/moghtech/komodo/blob/main/client/core/rs/src/entities/toml.rs#L23-L110) + [schemars](https://graham.cool/schemars/) (which intentionally aims to maintain compatibility with serde) - or [Typescript definitions](https://github.com/moghtech/komodo/blob/main/client/core/ts/src/types.ts#L7617) + [a generator like this](https://github.com/vega/ts-json-schema-generator) and there's plenty of tooling to validate schema for toml (including both tombi and taplo) which can be run in vscode or via cli!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#1553