{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openjuvenile.org/schemas/v0.1/profiles/stroller.schema.json",
  "title": "Category profile – strollers",
  "description": "Fields for strollers, prams and buggies (category code stroller). Relevant standards: EN 1888-1 and EN 1888-2.",
  "$comment": "TODO(review): the levels of the profile fields are a first proposal for the working group Strollers & car seats.",
  "type": "object",
  "properties": {
    "strollerType": {
      "description": "Type of stroller.",
      "type": "string",
      "enum": ["full-size", "compact", "travel", "jogger", "double", "tandem", "buggy"],
      "examples": ["travel"]
    },
    "foldedDimensions": {
      "$ref": "../core.schema.json#/$defs/dimensions",
      "description": "Dimensions when folded, in centimetres."
    },
    "foldType": {
      "description": "How the stroller folds: one-hand, two-hand, two-piece (seat removed before folding) or self-standing (stands on its own when folded).",
      "type": "string",
      "enum": ["one-hand", "two-hand", "two-piece", "self-standing"],
      "x-openjuvenile-level": "should",
      "examples": ["one-hand"]
    },
    "seatFacing": {
      "description": "Direction the seat faces: towards the parent, towards the world, or reversible.",
      "type": "string",
      "enum": ["parent", "world", "reversible"],
      "x-openjuvenile-level": "should",
      "examples": ["world"]
    },
    "reclinePositions": {
      "description": "Number of backrest positions.",
      "type": "integer",
      "minimum": 1,
      "x-openjuvenile-level": "should",
      "examples": [4]
    },
    "maxChildWeightKg": {
      "description": "Maximum weight of the child in the seat, in kg, as stated by the manufacturer.",
      "type": "number",
      "exclusiveMinimum": 0,
      "examples": [22]
    },
    "basketCapacityKg": {
      "description": "Maximum load of the shopping basket, in kg.",
      "type": "number",
      "exclusiveMinimum": 0,
      "x-openjuvenile-level": "should",
      "examples": [5]
    },
    "carrycotIncluded": {
      "description": "Whether a carrycot is included in the box.",
      "type": "boolean",
      "x-openjuvenile-level": "should",
      "examples": [false]
    },
    "carSeatCompatible": {
      "description": "Whether an infant car seat can be mounted on the frame. Details are listed in the compatibility module.",
      "type": "boolean",
      "x-openjuvenile-level": "should",
      "examples": [true]
    },
    "wheelType": {
      "description": "Type of tyres.",
      "$comment": "TODO(review): the list of wheel types is a first draft.",
      "type": "string",
      "enum": ["air", "foam-filled", "eva", "rubber", "plastic", "other"],
      "x-openjuvenile-level": "may",
      "examples": ["eva"]
    },
    "suspension": {
      "description": "Which wheels are suspended.",
      "type": "string",
      "enum": ["none", "front", "rear", "all-wheels"],
      "x-openjuvenile-level": "may",
      "examples": ["all-wheels"]
    },
    "travelSystemReady": {
      "description": "Whether the stroller can be combined with an infant car seat or carrycot to form a travel system.",
      "type": "boolean",
      "x-openjuvenile-level": "should",
      "examples": [true]
    }
  },
  "required": ["strollerType", "foldedDimensions", "maxChildWeightKg"],
  "patternProperties": {
    "^x-": {
      "description": "Extension fields. Names start with x- and are ignored by consumers that do not know them."
    }
  },
  "additionalProperties": false
}
