{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/DescribeSObjectResult",
  "definitions": {
    "DescribeSObjectResult": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "actionOverrides": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "formFactor": {
                "type": "string"
              },
              "isAvailableInTouch": {
                "type": "boolean"
              },
              "name": {
                "type": "string"
              },
              "pageId": {
                "type": "string"
              },
              "url": {
                "type": ["string", "null"]
              }
            },
            "required": ["formFactor", "isAvailableInTouch", "name", "pageId"],
            "additionalProperties": false
          }
        },
        "childRelationships": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "cascadeDelete": {
                "type": "boolean"
              },
              "childSObject": {
                "type": "string"
              },
              "deprecatedAndHidden": {
                "type": "boolean"
              },
              "field": {
                "type": "string"
              },
              "junctionIdListNames": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "junctionReferenceTo": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "relationshipName": {
                "type": ["string", "null"]
              },
              "restrictedDelete": {
                "type": "boolean"
              }
            },
            "required": [
              "cascadeDelete",
              "childSObject",
              "deprecatedAndHidden",
              "field",
              "junctionIdListNames",
              "junctionReferenceTo",
              "restrictedDelete"
            ],
            "additionalProperties": false
          }
        },
        "compactLayoutable": {
          "type": "boolean"
        },
        "fields": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Field"
          }
        },
        "listviewable": {
          "type": "boolean"
        },
        "lookupLayoutable": {
          "type": "boolean"
        },
        "namedLayoutInfos": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "urls": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "required": ["name", "urls"],
            "additionalProperties": false
          }
        },
        "networkScopeFieldName": {
          "type": ["string", "null"]
        },
        "recordTypeInfos": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "available": {
                "type": "boolean"
              },
              "defaultRecordTypeMapping": {
                "type": "boolean"
              },
              "master": {
                "type": "boolean"
              },
              "name": {
                "type": "string"
              },
              "recordTypeId": {
                "type": "string"
              },
              "urls": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "required": ["available", "defaultRecordTypeMapping", "master", "name", "recordTypeId", "urls"],
            "additionalProperties": false
          }
        },
        "searchLayoutable": {
          "type": "boolean"
        },
        "supportedScopes": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": ["label", "name"],
                "additionalProperties": false
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "activateable": {
          "type": "boolean"
        },
        "createable": {
          "type": "boolean"
        },
        "custom": {
          "type": "boolean"
        },
        "customSetting": {
          "type": "boolean"
        },
        "deepCloneable": {
          "type": "boolean"
        },
        "deletable": {
          "type": "boolean"
        },
        "deprecatedAndHidden": {
          "type": "boolean"
        },
        "feedEnabled": {
          "type": "boolean"
        },
        "hasSubtypes": {
          "type": "boolean"
        },
        "idEnabled": {
          "type": "boolean"
        },
        "isInterface": {
          "type": "boolean"
        },
        "isSubtype": {
          "type": "boolean"
        },
        "keyPrefix": {
          "type": ["string", "null"]
        },
        "label": {
          "type": "string"
        },
        "labelPlural": {
          "type": "string"
        },
        "layoutable": {
          "type": "boolean"
        },
        "mergeable": {
          "type": "boolean"
        },
        "mruEnabled": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "queryable": {
          "type": "boolean"
        },
        "replicateable": {
          "type": "boolean"
        },
        "retrieveable": {
          "type": "boolean"
        },
        "searchable": {
          "type": "boolean"
        },
        "triggerable": {
          "type": "boolean"
        },
        "undeletable": {
          "type": "boolean"
        },
        "updateable": {
          "type": "boolean"
        },
        "urls": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "required": [
        "actionOverrides",
        "activateable",
        "childRelationships",
        "compactLayoutable",
        "createable",
        "custom",
        "customSetting",
        "deepCloneable",
        "deletable",
        "deprecatedAndHidden",
        "feedEnabled",
        "fields",
        "hasSubtypes",
        "idEnabled",
        "isInterface",
        "isSubtype",
        "label",
        "labelPlural",
        "layoutable",
        "listviewable",
        "lookupLayoutable",
        "mergeable",
        "mruEnabled",
        "name",
        "namedLayoutInfos",
        "queryable",
        "recordTypeInfos",
        "replicateable",
        "retrieveable",
        "searchLayoutable",
        "searchable",
        "triggerable",
        "undeletable",
        "updateable",
        "urls"
      ]
    },
    "Field": {
      "type": "object",
      "properties": {
        "aggregatable": {
          "type": "boolean"
        },
        "autoNumber": {
          "type": "boolean"
        },
        "byteLength": {
          "type": "number"
        },
        "calculated": {
          "type": "boolean"
        },
        "calculatedFormula": {
          "type": ["string", "null"]
        },
        "cascadeDelete": {
          "type": "boolean"
        },
        "caseSensitive": {
          "type": "boolean"
        },
        "compoundFieldName": {
          "type": ["string", "null"]
        },
        "controllerName": {
          "type": ["string", "null"]
        },
        "createable": {
          "type": "boolean"
        },
        "custom": {
          "type": "boolean"
        },
        "defaultValue": {
          "type": ["string", "null"]
        },
        "defaultValueFormula": {
          "type": ["string", "null"]
        },
        "defaultedOnCreate": {
          "type": "boolean"
        },
        "dependentPicklist": {
          "type": "boolean"
        },
        "deprecatedAndHidden": {
          "type": "boolean"
        },
        "digits": {
          "type": "number"
        },
        "displayLocationInDecimal": {
          "type": "boolean"
        },
        "encrypted": {
          "type": "boolean"
        },
        "externalId": {
          "type": "boolean"
        },
        "extraTypeInfo": {
          "type": ["string", "null"]
        },
        "filterable": {
          "type": "boolean"
        },
        "filteredLookupInfo": {
          "type": "object"
        },
        "groupable": {
          "type": "boolean"
        },
        "highScaleNumber": {
          "type": "boolean"
        },
        "htmlFormatted": {
          "type": "boolean"
        },
        "idLookup": {
          "type": "boolean"
        },
        "inlineHelpText": {
          "type": ["string", "null"]
        },
        "label": {
          "type": "string"
        },
        "length": {
          "type": "number"
        },
        "mask": {
          "type": ["string", "null"]
        },
        "maskType": {
          "type": ["string", "null"]
        },
        "name": {
          "type": "string"
        },
        "nameField": {
          "type": "boolean"
        },
        "namePointing": {
          "type": "boolean"
        },
        "nillable": {
          "type": "boolean"
        },
        "permissionable": {
          "type": "boolean"
        },
        "picklistValues": {
          "anyOf": [
            {
              "type": "array",
              "items": {}
            },
            {
              "type": "null"
            }
          ]
        },
        "precision": {
          "type": "number"
        },
        "queryByDistance": {
          "type": "boolean"
        },
        "referenceTargetField": {
          "type": "object"
        },
        "referenceTo": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "relationshipName": {
          "type": ["string", "null"]
        },
        "relationshipOrder": {
          "type": ["number", "null"]
        },
        "restrictedDelete": {
          "type": "boolean"
        },
        "restrictedPicklist": {
          "type": "boolean"
        },
        "scale": {
          "type": "number"
        },
        "soapType": {
          "type": "string"
        },
        "sortable": {
          "type": "boolean"
        },
        "type": {
          "type": "string"
        },
        "unique": {
          "type": "boolean"
        },
        "updateable": {
          "type": "boolean"
        },
        "writeRequiresMasterRead": {
          "type": "boolean"
        }
      },
      "required": [
        "aggregatable",
        "autoNumber",
        "byteLength",
        "calculated",
        "cascadeDelete",
        "caseSensitive",
        "createable",
        "custom",
        "defaultedOnCreate",
        "dependentPicklist",
        "deprecatedAndHidden",
        "digits",
        "displayLocationInDecimal",
        "encrypted",
        "externalId",
        "filterable",
        "filteredLookupInfo",
        "groupable",
        "highScaleNumber",
        "htmlFormatted",
        "idLookup",
        "label",
        "length",
        "name",
        "nameField",
        "namePointing",
        "nillable",
        "permissionable",
        "precision",
        "queryByDistance",
        "referenceTargetField",
        "restrictedDelete",
        "restrictedPicklist",
        "scale",
        "soapType",
        "sortable",
        "type",
        "unique",
        "updateable",
        "writeRequiresMasterRead"
      ],
      "additionalProperties": false
    }
  }
}
