{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mri-software/json-schema/mri-software-asset-response-schema.json",
  "title": "AssetResponse",
  "description": "Asset Response schema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mri-software-assets-api-openapi.yml#/components/schemas/AssetResponse",
  "properties": {
    "id": {
      "description": "Asset ID",
      "type": "integer",
      "format": "int32"
    },
    "type_id": {
      "description": "Type ID of the asset",
      "type": "integer",
      "format": "int32"
    },
    "name": {
      "description": "Name of the asset",
      "type": "string",
      "format": "string"
    },
    "tag": {
      "description": "Tag of the asset",
      "type": "string",
      "format": "string"
    },
    "reference": {
      "description": "Reference of the asset",
      "type": "string",
      "format": "string"
    },
    "department_id": {
      "description": "Department ID of the asset",
      "type": "integer",
      "format": "int32"
    },
    "notes": {
      "description": "Notes for the asset",
      "type": "string",
      "format": "string"
    },
    "geo_lat": {
      "description": "Geolocation latitude of the asset",
      "type": "string",
      "format": "string"
    },
    "geo_lon": {
      "description": "Geolocation longitude of the asset",
      "type": "string",
      "format": "string"
    },
    "owner_type": {
      "type": "string",
      "enum": [
        "org",
        "sp"
      ]
    },
    "owner_staff_id": {
      "description": "Asset owner staff ID",
      "type": "integer",
      "format": "int32"
    },
    "owner_sp_id": {
      "description": "Asset owner contractor ID",
      "type": "integer",
      "format": "int32"
    },
    "location_id": {
      "description": "Location ID of the asset",
      "type": "integer",
      "format": "int32"
    },
    "status": {
      "type": "string",
      "enum": [
        "in",
        "out"
      ]
    }
  },
  "type": "object"
}