{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-property-set-definitions-response-schema.json",
  "title": "PropertySetDefinitionsResponse",
  "description": "A response which contains a collection of property set definitions.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-connect-model-openapi.yml#/components/schemas/PropertySetDefinitionsResponse",
  "type": "object",
  "required": [
    "items",
    "total",
    "count",
    "offset"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PropertySetDefinition"
      },
      "description": "The collection of property set definitions."
    },
    "offset": {
      "type": "integer",
      "description": "The offset of the first item returned in this page."
    },
    "offsetNext": {
      "type": "integer",
      "description": "The first item of the next page. If null, then this is the last page in the result set. If not null, then this value must be passed in the `offset` query parameter to fetch the next page."
    },
    "total": {
      "type": "integer",
      "description": "The total number of items in the result set."
    },
    "count": {
      "type": "integer",
      "description": "The number of items on the current page."
    }
  },
  "$defs": {
    "PropertyDefinition": {
      "type": "object",
      "required": [
        "name",
        "type"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "The property name.",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "description": "The property data type.",
          "enum": [
            "lengthMeasure",
            "areaMeasure",
            "volumeMeasure",
            "massMeasure",
            "angleMeasure",
            "string",
            "integer",
            "number",
            "boolean"
          ]
        },
        "format": {
          "type": "string",
          "description": "The optional modifier for a property type.",
          "enum": [
            "date-time"
          ]
        },
        "nullable": {
          "type": "boolean",
          "description": "The optional modifier for a property type.",
          "default": false
        }
      },
      "description": "A single property schema definition including the name of the property and a data type."
    },
    "PropertySetDefinition": {
      "required": [
        "idx",
        "name",
        "props"
      ],
      "type": "object",
      "properties": {
        "idx": {
          "type": "integer",
          "description": "The identifier of the pset definition."
        },
        "name": {
          "minLength": 1,
          "type": "string",
          "description": "The property set name."
        },
        "props": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PropertyDefinition"
          },
          "description": "The ordered collection of property items belonging to a property set."
        }
      },
      "description": "A property set definition, which is a data schema of the property set."
    }
  }
}