blue-build / modules

BlueBuild standard modules used for building your Atomic Images
Apache License 2.0
23 stars 25 forks source link

feat: create json schemas for module configuration #113

Closed xynydev closed 1 week ago

xynydev commented 5 months ago

https://json-schema.org/learn/getting-started-step-by-step

fiftydinar commented 5 months ago

Is this just another option if you prefer to use JSON format compared to YAML?

xynydev commented 5 months ago

No, jsonschema can be used for YAML validation and building UI. I was unable to find something similar that could be written in YAML.

xynydev commented 4 months ago

Linkdump: https://json-schema.org/understanding-json-schema/structuring#structuring-a-complex-schema https://stackoverflow.com/questions/30298740/json-schema-how-to-use-oneof

xynydev commented 2 months ago

Should look into TypeSpec vs Jsonschema

https://typespec.io/

Edit: doing some local testing with TypeSpec, seems to be working wonderfully. Will create a repo soon.