{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/silvercar/json-schema/silvercar-admin-customer-notes-response-schema.json",
  "title": "AdminCustomerNotesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/silvercar-notes-api-openapi.yml#/components/schemas/AdminCustomerNotesResponse",
  "type": "object",
  "required": [
    "id",
    "content",
    "created_at",
    "note_type",
    "pinned?",
    "readonly?",
    "images",
    "updated_at",
    "author"
  ],
  "properties": {
    "id": {
      "type": "integer"
    },
    "content": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "note_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "pinned?": {
      "type": "boolean"
    },
    "readonly?": {
      "type": "boolean"
    },
    "images": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AdminCustomerNoteImageResponse"
      }
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "author": {
      "type": "string"
    }
  },
  "$defs": {
    "AdminCustomerNoteImageResponse": {
      "type": "object",
      "required": [
        "id",
        "image_url",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "image_url": {
          "type": "string"
        },
        "created_at": {
          "type": "string"
        }
      }
    }
  }
}