2021-04-03 10:03:52 +00:00
{
"$id" : "https://macos-defaults.com/defaults.schema.json" ,
"title" : "macOS Defaults Reference" ,
"description" : "The supporting data for macos-defaults.com." ,
"type" : "object" ,
"properties" : {
"categories" : {
"description" : "The main categorization level." ,
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"folder" : {
"description" : "The slug for this category in the site's URL." ,
"type" : "string"
} ,
"name" : {
"description" : "The human readable name for this category." ,
"type" : "string"
} ,
"description" : {
"description" : "Longer form, human readable explanation of this category." ,
"type" : "string"
} ,
"image" : {
"$ref" : "#/definitions/image"
} ,
"keys" : {
"description" : "The defaults keys within this category." ,
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"key" : {
"type" : "string"
} ,
"domain" : {
"description" : "The domain for this key, typically corresponding to an individual application." ,
"type" : "string"
} ,
"title" : {
"description" : "The human readable title of this key." ,
"type" : "string"
} ,
"description" : {
"description" : "Longer form, human readable explanation of this key." ,
"type" : "string"
} ,
"param" : {
"type" : "object" ,
"properties" : {
"type" : {
"description" : "The type the key stores in the defaults system." ,
"type" : "string" ,
"enum" : [
"array" ,
"bool" ,
"dict" ,
"float" ,
"int" ,
"string"
]
} ,
"values" : {
"type" : "array"
}
}
} ,
"examples" : {
"type" : "array" ,
"items" : {
2021-04-04 10:49:28 +00:00
"description" : "Describes a sample `defaults write` command example." ,
2021-04-03 10:03:52 +00:00
"type" : "object" ,
"properties" : {
"value" : {
2021-04-04 10:49:28 +00:00
"$ref" : "#/definitions/value"
} ,
"command" : {
"description" : "The command used to set data when running `defaults write`. Must be valid for the parameter type and value. If not specified, the parameter type will be used." ,
"type" : "string" ,
"enum" : [
"string" ,
"data" ,
"int" ,
"float" ,
"bool" ,
"date" ,
"array" ,
"array-add" ,
"dict" ,
"dict-add"
2021-04-03 10:03:52 +00:00
]
} ,
"default" : {
2021-04-04 10:49:28 +00:00
"description" : "If this command resets to the default setting." ,
2021-04-03 10:03:52 +00:00
"type" : "boolean"
} ,
"image" : {
"$ref" : "#/definitions/image"
} ,
2021-04-04 10:49:28 +00:00
"title" : {
"description" : "Human readable title for this example, will be autogenerated if not provided" ,
"type" : "string"
} ,
2021-04-03 10:03:52 +00:00
"text" : {
2021-04-04 10:49:28 +00:00
"description" : "Human readable description of this example." ,
2021-04-03 10:03:52 +00:00
"type" : "string"
}
}
} ,
"uniqueItems" : true
} ,
"versions" : {
"description" : "The versions of macOS this key has been tested on." ,
"type" : "array" ,
"items" : {
"description" : "E.g. \"Big Sur\", \"Catalina\"" ,
"type" : "string"
} ,
"uniqueItems" : true
2021-04-04 10:49:28 +00:00
} ,
"requirements" : {
"type" : "array" ,
"items" : {
"description" : "Describes another defaults setting that is required for this one to work." ,
"type" : "object" ,
"properties" : {
"folder" : {
"description" : "The `folder` of a category in the defaults file." ,
"type" : "string"
} ,
"key" : {
"description" : "The `key` of a key in the category in the defaults file" ,
"type" : "string"
} ,
"name" : {
"description" : "The defaults domain + key." ,
"type" : "string"
} ,
"value" : {
"description" : "The required value" ,
"$ref" : "#/definitions/value"
}
}
}
2021-04-04 14:09:02 +00:00
} ,
"after" : {
"type" : "string"
2021-04-03 10:03:52 +00:00
}
} ,
"required" : [
"domain" ,
"examples" ,
"key" ,
"param" ,
"title"
2021-04-04 14:09:02 +00:00
] ,
"additionalProperties" : false
2021-04-03 10:03:52 +00:00
} ,
"uniqueItems" : true
}
2021-04-04 14:09:02 +00:00
} ,
"required" : [
"folder" ,
"name" ,
"description"
] ,
"additionalProperties" : false
2021-04-03 10:03:52 +00:00
} ,
"uniqueItems" : true
}
} ,
"required" : [ "categories" ] ,
2021-04-04 14:09:02 +00:00
"additionalProperties" : false ,
2021-04-03 10:03:52 +00:00
"definitions" : {
"image" : {
"type" : "object" ,
"properties" : {
"filename" : {
"description" : "Path to this image asset in the images directory" ,
"type" : "string"
} ,
"height" : {
"type" : "integer"
} ,
"width" : {
"type" : "integer"
}
} ,
"keys" : [
"filename" ,
"height" ,
"width"
]
2021-04-04 10:49:28 +00:00
} ,
"value" : {
"description" : "The literal value or values passed to the `defaults write` command in the terminal." ,
"anyOf" : [
{ "type" : "boolean" } ,
{ "type" : "string" } ,
{ "type" : "integer" } ,
{ "type" : "number" } ,
{
"type" : "array" ,
"items" : {
"anyOf" : [
{ "type" : "boolean" } ,
{ "type" : "string" } ,
{ "type" : "integer" } ,
{ "type" : "number" }
]
}
}
]
2021-04-03 10:03:52 +00:00
}
}
}