Skip to content

saturncloud/recipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object schemas

With our customers increasingly interested in infrastructure-as-code and not having to use the UI, it's become apparent that .Dockerfile-like ways of specifying objects in Saturn Cloud would be useful. This repo is to store the specifications of those

Resources

For resources, they can be specified with one or more files:

  • recipe.json (required) - a json file that specifies how the resource should be created. This should fully encapsulate all of the parameters you can set in the UI.

Here is how you would validate the example using the schema for resources in Python:

import json
from jsonschema import validate

with open('resources/schema.json') as f:
    schema = json.load(f)

with open('resources/example.json') as f:
    instance = json.load(f)

validate(instance=instance, schema=schema)

About

For json schemas describing Saturn Cloud objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published