{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/entur/json-schema/entur-product-schema.json",
  "title": "Product",
  "description": "A personnel ticket product",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/entur-codes-api-openapi.yml#/components/schemas/Product",
  "required": [
    "id",
    "name",
    "validFrom",
    "validUntil"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "The product id",
      "format": "int64"
    },
    "name": {
      "type": "string",
      "description": "Human readable product name"
    },
    "validFrom": {
      "type": "string",
      "description": "When the product is valid from",
      "format": "date"
    },
    "validUntil": {
      "type": "string",
      "description": "When the product is valid to",
      "format": "date"
    }
  }
}