{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-sales-cloud/json-schema/salesforce-sales-cloud-sobject-describe-schema.json",
  "title": "SObjectDescribe",
  "description": "Full metadata description of an sObject including fields and relationships",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-sales-cloud-sobject-api-openapi.yml#/components/schemas/SObjectDescribe",
  "type": "object",
  "properties": {
    "actionOverrides": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "activateable": {
      "type": "boolean"
    },
    "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"
          }
        }
      }
    },
    "compactLayoutable": {
      "type": "boolean"
    },
    "createable": {
      "type": "boolean"
    },
    "custom": {
      "type": "boolean"
    },
    "customSetting": {
      "type": "boolean"
    },
    "deletable": {
      "type": "boolean"
    },
    "deprecatedAndHidden": {
      "type": "boolean"
    },
    "feedEnabled": {
      "type": "boolean"
    },
    "fields": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FieldDescribe"
      }
    },
    "hasSubtypes": {
      "type": "boolean"
    },
    "isSubtype": {
      "type": "boolean"
    },
    "keyPrefix": {
      "type": [
        "string",
        "null"
      ]
    },
    "label": {
      "type": "string"
    },
    "labelPlural": {
      "type": "string"
    },
    "layoutable": {
      "type": "boolean"
    },
    "listviewable": {
      "type": "boolean"
    },
    "lookupLayoutable": {
      "type": "boolean"
    },
    "mergeable": {
      "type": "boolean"
    },
    "mruEnabled": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "namedLayoutInfos": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "queryable": {
      "type": "boolean"
    },
    "recordTypeInfos": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "available": {
            "type": "boolean"
          },
          "defaultRecordTypeMapping": {
            "type": "boolean"
          },
          "developerName": {
            "type": "string"
          },
          "master": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "recordTypeId": {
            "type": "string"
          }
        }
      }
    },
    "replicateable": {
      "type": "boolean"
    },
    "retrieveable": {
      "type": "boolean"
    },
    "searchLayoutable": {
      "type": "boolean"
    },
    "searchable": {
      "type": "boolean"
    },
    "triggerable": {
      "type": "boolean"
    },
    "undeletable": {
      "type": "boolean"
    },
    "updateable": {
      "type": "boolean"
    },
    "urls": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "FieldDescribe": {
      "type": "object",
      "description": "Metadata description of a single field on an sObject",
      "properties": {
        "aggregatable": {
          "type": "boolean"
        },
        "autoNumber": {
          "type": "boolean"
        },
        "byteLength": {
          "type": "integer"
        },
        "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": {
          "nullable": true
        },
        "defaultValueFormula": {
          "type": [
            "string",
            "null"
          ]
        },
        "defaultedOnCreate": {
          "type": "boolean"
        },
        "dependentPicklist": {
          "type": "boolean"
        },
        "deprecatedAndHidden": {
          "type": "boolean"
        },
        "digits": {
          "type": "integer"
        },
        "displayLocationInDecimal": {
          "type": "boolean"
        },
        "encrypted": {
          "type": "boolean"
        },
        "externalId": {
          "type": "boolean"
        },
        "extraTypeInfo": {
          "type": [
            "string",
            "null"
          ]
        },
        "filterable": {
          "type": "boolean"
        },
        "filteredLookupInfo": {
          "type": [
            "object",
            "null"
          ]
        },
        "formulaTreatNullNumberAsZero": {
          "type": "boolean"
        },
        "groupable": {
          "type": "boolean"
        },
        "highScaleNumber": {
          "type": "boolean"
        },
        "htmlFormatted": {
          "type": "boolean"
        },
        "idLookup": {
          "type": "boolean"
        },
        "inlineHelpText": {
          "type": [
            "string",
            "null"
          ]
        },
        "label": {
          "type": "string"
        },
        "length": {
          "type": "integer"
        },
        "mask": {
          "type": [
            "string",
            "null"
          ]
        },
        "maskType": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": "string"
        },
        "nameField": {
          "type": "boolean"
        },
        "namePointing": {
          "type": "boolean"
        },
        "nillable": {
          "type": "boolean"
        },
        "permissionable": {
          "type": "boolean"
        },
        "picklistValues": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "active": {
                "type": "boolean"
              },
              "defaultValue": {
                "type": "boolean"
              },
              "label": {
                "type": "string"
              },
              "validFor": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "value": {
                "type": "string"
              }
            }
          }
        },
        "polymorphicForeignKey": {
          "type": "boolean"
        },
        "precision": {
          "type": "integer"
        },
        "queryByDistance": {
          "type": "boolean"
        },
        "referenceTargetField": {
          "type": [
            "string",
            "null"
          ]
        },
        "referenceTo": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "relationshipName": {
          "type": [
            "string",
            "null"
          ]
        },
        "relationshipOrder": {
          "type": [
            "integer",
            "null"
          ]
        },
        "restrictedDelete": {
          "type": "boolean"
        },
        "restrictedPicklist": {
          "type": "boolean"
        },
        "scale": {
          "type": "integer"
        },
        "searchPrefilterable": {
          "type": "boolean"
        },
        "soapType": {
          "type": "string"
        },
        "sortable": {
          "type": "boolean"
        },
        "type": {
          "type": "string",
          "enum": [
            "id",
            "boolean",
            "currency",
            "date",
            "datetime",
            "double",
            "email",
            "int",
            "multipicklist",
            "percent",
            "phone",
            "picklist",
            "reference",
            "string",
            "textarea",
            "url"
          ]
        },
        "unique": {
          "type": "boolean"
        },
        "updateable": {
          "type": "boolean"
        },
        "writeRequiresMasterRead": {
          "type": "boolean"
        }
      }
    }
  }
}