{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/staalptkram-nl/json-schema/staalptkram-nl-listing-schema.json",
  "title": "Listing",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/staalptkram-nl-openapi.yml#/components/schemas/Listing",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "category_name": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "location": {
      "type": "object",
      "properties": {
        "country": {
          "type": [
            "string",
            "null"
          ]
        },
        "region": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "lat": {
          "type": [
            "number",
            "null"
          ]
        },
        "lng": {
          "type": [
            "number",
            "null"
          ]
        },
        "remote": {
          "type": "boolean"
        }
      }
    },
    "currency": {
      "type": "string"
    },
    "price_cents": {
      "type": [
        "integer",
        "null"
      ]
    },
    "budget_cents": {
      "type": [
        "integer",
        "null"
      ]
    },
    "quantity": {
      "type": [
        "string",
        "null"
      ]
    },
    "condition": {
      "type": [
        "string",
        "null"
      ]
    },
    "fulfilment": {
      "type": "string"
    },
    "attributes": {
      "type": "object"
    },
    "images": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "mode": {
      "type": "string"
    },
    "max_responses": {
      "type": "integer"
    },
    "decision_days": {
      "type": "integer"
    },
    "status": {
      "type": "string"
    },
    "round": {
      "type": "integer"
    },
    "opened_at": {
      "type": [
        "integer",
        "null"
      ]
    },
    "closes_at": {
      "type": [
        "integer",
        "null"
      ]
    },
    "closed_at": {
      "type": [
        "integer",
        "null"
      ]
    },
    "created_at": {
      "type": "integer"
    },
    "poster": {
      "$ref": "#/$defs/Account"
    },
    "responses": {
      "type": "integer"
    },
    "slots_left": {
      "type": "integer"
    },
    "my_response": {
      "$ref": "#/$defs/Response"
    },
    "poster_contact": {
      "type": "object"
    }
  },
  "$defs": {
    "Account": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "operator": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "trust": {
          "type": "integer"
        },
        "member_since": {
          "type": "integer"
        },
        "stats": {
          "type": "object",
          "properties": {
            "listings": {
              "type": "integer"
            },
            "responses": {
              "type": "integer"
            },
            "deals": {
              "type": "integer"
            },
            "rating": {
              "type": [
                "number",
                "null"
              ]
            },
            "ratings": {
              "type": "integer"
            }
          }
        },
        "email": {
          "type": "string"
        },
        "email_verified": {
          "type": "boolean"
        }
      }
    },
    "Response": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "amount_cents": {
          "type": [
            "integer",
            "null"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        },
        "terms": {
          "type": "object"
        },
        "status": {
          "type": "string"
        },
        "created_at": {
          "type": "integer"
        },
        "responder": {
          "type": "object"
        }
      }
    }
  }
}