{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yondry-app/json-schema/yondry-app-place-out-schema.json",
  "title": "PlaceOut",
  "description": "Legacy response schema retained for places_import.py and existing tests.\n\nNew endpoints return PlaceResponse.  This type is intentionally narrow so\nit deserialises cleanly from both old and new Place ORM rows.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yondry-app-openapi.json#/components/schemas/PlaceOut",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "address": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Address"
    },
    "lat": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lat"
    },
    "lon": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lon"
    },
    "category": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Category"
    },
    "indoor_outdoor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Indoor Outdoor"
    },
    "budget_level": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Budget Level"
    },
    "kid_min_age": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Kid Min Age"
    },
    "kid_max_age": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Kid Max Age"
    },
    "always_open": {
      "type": "boolean",
      "title": "Always Open"
    },
    "opening_time": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Opening Time"
    },
    "closing_time": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Closing Time"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tags"
    },
    "source": {
      "type": "string",
      "title": "Source"
    },
    "notes": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notes"
    },
    "is_deleted": {
      "type": "boolean",
      "title": "Is Deleted"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "address",
    "lat",
    "lon",
    "category",
    "indoor_outdoor",
    "budget_level",
    "kid_min_age",
    "kid_max_age",
    "always_open",
    "opening_time",
    "closing_time",
    "tags",
    "source",
    "notes",
    "is_deleted",
    "created_at",
    "updated_at"
  ]
}