Skip to content

omnidotdev/garden-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Garden Schema

JSON Schema specification for modeling ecosystems as composable directed graphs.

Structure

garden.schema.json          # Root schema
slices/
β”œβ”€β”€ core.schema.json         # Name, description, version, timestamps (required)
β”œβ”€β”€ sprouts.schema.json      # Products and services
β”œβ”€β”€ maintainers.schema.json  # Garden maintainers
β”œβ”€β”€ theme.schema.json        # Visual theming
└── composition.schema.json  # Subgardens, supergardens

Slices

Slice Required Description
core Yes Garden identity: name, description, version, timestamps
sprouts No Products and services in the garden
maintainers No People who maintain the garden
theme No Visual theming for rendering
composition No Garden hierarchy (subgardens, supergardens)

Usage

{
  "$schema": "https://garden.omni.dev/garden.schema.json",
  "version": "1.0.0",
  "core": {
    "name": "My Garden",
    "description": "An ecosystem of tools"
  },
  "sprouts": [
    {
      "name": "My App",
      "homepageUrl": "https://myapp.dev"
    }
  ]
}

Validation

npx ajv validate -s garden.schema.json -d examples/minimal.json

License

MIT

About

🌱 Garden JSON Schema specification

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

 
 
 

Contributors