Skip to content
William Smith edited this page Feb 16, 2020 · 3 revisions

An array allows admins to build a list of items and each value will use the string format.

Managed App Schema Builder app array

A manifest array for a fictional app called Disk Manager includes the following:

"domainWhiteList": {
	"title": "Domain white list",
	"description": "Disk Manager will not filter these domains.",
	"property_order": 2,
	"anyOf": [
		{"type": "null", "title": "Not Configured"},
		{
			"title": "Configured",
			"type": "array",
			"items": {
				"type": "string",
				"title": "Entries"
			}
		}
	]
},

Jamf Pro will display:

Jamf Pro array display

This generates the XML equivalent of:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>domainWhiteList</key>
    <array>
      <string>mooserat.pvt</string>
      <string>mooserat.com</string>
    </array>
  </dict>
</plist>

Optional tweak: Consider changing "title": "Entries" in the manifest to "title": "Domain" to better indicate the type of information that admins should enter into the fields.

For additional schema formats, continue to...

array (from list)

Clone this wiki locally