Open GhostofGoes opened 1 month ago
This seems like a good idea @GhostofGoes, and it should be possible to use Go's native file embed capabilities to facilitate having the schemas as static JSON files in the repo while still being embedded in the Go binary.
Add JSON schemas for Topology, Scenario, Experiment, Image, and other schemas to SchemaStore. This would enable auto-completion and validation in editors such as VSCode, improving quality of life for developers.
The primry barrier to me simply opening a PR on SchemaStore is the fact the JSON schema is embedded in Go code and only generated in JSON form when doing a query to
/api/v1/schemas/{version}
(v1 or v2). To add it to SchemaStore, the file must be static committed into GitHub. There appears to be at least one schema file in the Builder directory, but I think it's out of date.