mirror of
https://github.com/Bornholm/formidable.git
synced 2025-07-15 10:01:34 +02:00
Initial commit
This commit is contained in:
106
misc/schema/card.json
Normal file
106
misc/schema/card.json
Normal file
@ -0,0 +1,106 @@
|
||||
{
|
||||
"$id": "https://example.com/card.schema.json",
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"description": "A representation of a person, company, organization, or place",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"familyName",
|
||||
"givenName"
|
||||
],
|
||||
"properties": {
|
||||
"fn": {
|
||||
"description": "Formatted Name",
|
||||
"type": "string"
|
||||
},
|
||||
"familyName": {
|
||||
"type": "string"
|
||||
},
|
||||
"givenName": {
|
||||
"type": "string"
|
||||
},
|
||||
"additionalName": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"honorificPrefix": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"honorificSuffix": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"nickname": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
},
|
||||
"email": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tel": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"adr": {
|
||||
"$ref": "https://json-schema.org/learn/examples/address.schema.json"
|
||||
},
|
||||
"geo": {
|
||||
"$ref": "https://json-schema.org/learn/examples/geographical-location.schema.json"
|
||||
},
|
||||
"tz": {
|
||||
"type": "string"
|
||||
},
|
||||
"photo": {
|
||||
"type": "string"
|
||||
},
|
||||
"logo": {
|
||||
"type": "string"
|
||||
},
|
||||
"sound": {
|
||||
"type": "string"
|
||||
},
|
||||
"bday": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"type": "string"
|
||||
},
|
||||
"org": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"organizationName": {
|
||||
"type": "string"
|
||||
},
|
||||
"organizationUnit": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
136
misc/schema/filesystem.json
Normal file
136
misc/schema/filesystem.json
Normal file
@ -0,0 +1,136 @@
|
||||
{
|
||||
"$id": "https://example.com/entry-schema",
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"description": "JSON Schema for an fstab entry",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"storage"
|
||||
],
|
||||
"properties": {
|
||||
"storage": {
|
||||
"type": "object",
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/$defs/diskDevice"
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/diskUUID"
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/nfs"
|
||||
},
|
||||
{
|
||||
"$ref": "#/$defs/tmpfs"
|
||||
}
|
||||
]
|
||||
},
|
||||
"fstype": {
|
||||
"enum": [
|
||||
"ext3",
|
||||
"ext4",
|
||||
"btrfs"
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueItems": true
|
||||
},
|
||||
"readonly": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"$defs": {
|
||||
"diskDevice": {
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"disk"
|
||||
]
|
||||
},
|
||||
"device": {
|
||||
"type": "string",
|
||||
"pattern": "^/dev/[^/]+(/[^/]+)*$"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"device"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"diskUUID": {
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"disk"
|
||||
]
|
||||
},
|
||||
"label": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"label"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"nfs": {
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"nfs"
|
||||
]
|
||||
},
|
||||
"remotePath": {
|
||||
"type": "string",
|
||||
"pattern": "^(/[^/]+)+$"
|
||||
},
|
||||
"server": {
|
||||
"type": "string",
|
||||
"oneOf": [
|
||||
{
|
||||
"format": "hostname"
|
||||
},
|
||||
{
|
||||
"format": "ipv4"
|
||||
},
|
||||
{
|
||||
"format": "ipv6"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"server",
|
||||
"remotePath"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"tmpfs": {
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"tmpfs"
|
||||
]
|
||||
},
|
||||
"sizeInMB": {
|
||||
"type": "integer",
|
||||
"minimum": 16,
|
||||
"maximum": 512
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"sizeInMB"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user