{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brm-chronographes-com/json-schema/brm-chronographes-com-create-quote-request-schema.json",
  "title": "CreateQuoteRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brm-chronographes-com-test-quote-api-openapi.yml#/components/schemas/CreateQuoteRequest",
  "properties": {
    "sav_id": {
      "type": "integer",
      "title": "Sav Id"
    },
    "lines": {
      "items": {
        "$ref": "#/$defs/QuoteLine"
      },
      "type": "array",
      "title": "Lines",
      "default": []
    },
    "free_lines": {
      "items": {
        "$ref": "#/$defs/FreeLineSchema"
      },
      "type": "array",
      "title": "Free Lines",
      "default": []
    },
    "include_shipping": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Include Shipping"
    },
    "discount_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Discount Type"
    },
    "discount_value": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Discount Value"
    },
    "notes": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notes"
    }
  },
  "type": "object",
  "required": [
    "sav_id"
  ],
  "$defs": {
    "FreeLineSchema": {
      "properties": {
        "description": {
          "type": "string",
          "title": "Description"
        },
        "price_ht": {
          "type": "number",
          "title": "Price Ht"
        },
        "quantity": {
          "type": "integer",
          "title": "Quantity",
          "default": 1
        }
      },
      "type": "object",
      "required": [
        "description",
        "price_ht"
      ],
      "title": "FreeLineSchema"
    },
    "QuoteLine": {
      "properties": {
        "tarif_part_id": {
          "type": "integer",
          "title": "Tarif Part Id"
        },
        "quantity": {
          "type": "integer",
          "title": "Quantity",
          "default": 1
        }
      },
      "type": "object",
      "required": [
        "tarif_part_id"
      ],
      "title": "QuoteLine"
    }
  }
}