{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/staalptkram-nl/json-schema/staalptkram-nl-listing-input-schema.json",
  "title": "ListingInput",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/staalptkram-nl-openapi.yml#/components/schemas/ListingInput",
  "type": "object",
  "required": [
    "kind",
    "title",
    "category",
    "description"
  ],
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "offer",
        "request"
      ]
    },
    "title": {
      "type": "string",
      "maxLength": 100
    },
    "category": {
      "type": "string"
    },
    "description": {
      "type": "string",
      "minLength": 20,
      "maxLength": 6000
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "country": {
      "type": "string"
    },
    "region": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "lat": {
      "type": "number"
    },
    "lng": {
      "type": "number"
    },
    "remote": {
      "type": "boolean"
    },
    "currency": {
      "type": "string"
    },
    "price": {
      "type": "number"
    },
    "price_cents": {
      "type": "integer"
    },
    "budget": {
      "type": "number"
    },
    "budget_cents": {
      "type": "integer"
    },
    "quantity": {
      "type": "string"
    },
    "condition": {
      "type": "string"
    },
    "fulfilment": {
      "type": "string"
    },
    "attributes": {
      "type": "object",
      "additionalProperties": true
    },
    "image_urls": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "mode": {
      "type": "string",
      "enum": [
        "sealed",
        "open"
      ]
    },
    "max_responses": {
      "type": "integer"
    },
    "round_hours": {
      "type": "integer"
    },
    "decision_days": {
      "type": "integer"
    },
    "public": {
      "type": "boolean"
    },
    "lang": {
      "type": "string"
    }
  }
}