{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/justidea-agency/json-schema/justidea-agency-services-schema.json",
  "title": "Services",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/justidea-agency-openapi.yml#/components/schemas/Services",
  "type": "object",
  "required": [
    "language",
    "prices_note",
    "pricing",
    "services"
  ],
  "properties": {
    "language": {
      "type": "string",
      "enum": [
        "pl",
        "en"
      ]
    },
    "prices_note": {
      "type": "string"
    },
    "pricing": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "from_price",
          "currency",
          "pricing_page"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "from_price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Net starting price as published; null = quoted individually."
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 code."
          },
          "pricing_page": {
            "type": "string",
            "format": "uri",
            "description": "Page where this price is published."
          },
          "packages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "from_price": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "currency": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "services": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "title",
          "url",
          "kind"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "kind": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      }
    },
    "nextStep": {
      "type": "string"
    }
  }
}