{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lovefengis-com/json-schema/lovefengis-com-service-schema.json",
  "title": "Service",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lovefengis-com-openapi.json#/components/schemas/Service",
  "allOf": [
    {
      "$ref": "#/$defs/ServiceSummary"
    },
    {
      "type": "object",
      "required": [
        "scope"
      ],
      "properties": {
        "scope": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "What the service includes, when the catalog lists it."
        }
      }
    }
  ],
  "$defs": {
    "Price": {
      "type": "object",
      "required": [
        "id",
        "label",
        "amount_try",
        "type",
        "period",
        "delivery",
        "commitment_months"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "amount_try": {
          "type": "integer",
          "description": "Amount in Turkish lira, VAT included."
        },
        "type": {
          "type": "string",
          "enum": [
            "fixed",
            "from"
          ],
          "description": "\"from\" is a starting price; the final amount is fixed in a written offer."
        },
        "period": {
          "type": "string",
          "enum": [
            "one_time",
            "monthly",
            "yearly"
          ]
        },
        "delivery": {
          "type": [
            "string",
            "null"
          ],
          "description": "Delivery time as written on the site, or null."
        },
        "commitment_months": {
          "type": [
            "integer",
            "null"
          ]
        }
      }
    },
    "ServiceSummary": {
      "type": "object",
      "required": [
        "id",
        "name",
        "url",
        "markdown_url",
        "prices"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "markdown_url": {
          "type": "string",
          "format": "uri"
        },
        "prices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Price"
          }
        }
      }
    }
  }
}