com.github.fge.jsonschema.examples.fstab-inline.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-schema-validator Show documentation
Show all versions of json-schema-validator Show documentation
A Java implementation of the JSON Schema specification
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "/etc/fstab",
"description": "JSON representation of /etc/fstab",
"type": "object",
"required": [ "/", "swap" ],
"properties": {
"swap": {
"$ref": "#mntent"
}
},
"patternProperties": {
"^/[^/]+(/[^/]+)*$": {
"$ref": "#mntent"
}
},
"additionalProperties": false,
"definitions": {
"mntent": {
"title": "mntent",
"description": "An fstab entry",
"type": "object",
"properties": {
"device": {
"type": "string"
},
"fstype": {
"type": "string"
},
"options": {
"type": "array",
"minItems": 1,
"items": { "type": "string" }
},
"dump": {
"type": "integer",
"minimum": 0
},
"fsck": {
"type": "integer",
"minimum": 0
}
},
"required": [ "device", "fstype" ],
"additionalItems": false
}
}
}