Skip to content

Instantly share code, notes, and snippets.

@fge
Last active December 10, 2015 17:28
Show Gist options
  • Select an option

  • Save fge/4467942 to your computer and use it in GitHub Desktop.

Select an option

Save fge/4467942 to your computer and use it in GitHub Desktop.
{
"id": "http://some.site.somewhere/entry-schema#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "schema for an fstab entry",
"type": "object",
"required": [ "storage" ],
"properties": {
"storage": {
"type": "object",
"oneOf": [
{ "$ref": "#/definitions/diskDevice" },
{ "$ref": "#/definitions/diskUUID" },
{ "$ref": "#/definitions/nfs" },
{ "$ref": "#/definitions/tmpfs" }
]
}
},
"definitions": {
"diskDevice": {},
"diskUUID": {},
"nfs": {},
"tmpfs": {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment