{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bancomat/main/json-schema/bancomat-site-quote-schema.json",
  "title": "SiteQuote",
  "description": "Quote for a construction site",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bancomat-construction-api-openapi.yml#/components/schemas/SiteQuote",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier of the quote ",
      "x-faker": "datatype.uuid"
    },
    "site": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the construction site",
      "x-faker": "datatype.uuid"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time of the quote creation",
      "x-faker": "date.past"
    },
    "amount": {
      "type": "number",
      "format": "float",
      "description": "Total amount of the quote",
      "x-faker": "finance.amount"
    },
    "description": {
      "type": "string",
      "description": "Description of the quote"
    },
    "reference": {
      "type": "string",
      "description": "Reference of the quote"
    },
    "fingerprint": {
      "type": "string",
      "description": "Fingerprint of the document accounting for the quote"
    },
    "files": {
      "type": "array",
      "description": "List of files related to the quote",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    }
  },
  "required": [
    "id",
    "site",
    "createdAt",
    "amount",
    "fingerprint",
    "files"
  ]
}