{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/citation-co/json-schema/citation-co-pricing-schema.json",
  "title": "Pricing",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citation-co-pricing-api-openapi.yml#/components/schemas/Pricing",
  "type": "object",
  "properties": {
    "currency": {
      "type": "string",
      "const": "USD"
    },
    "package": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number",
          "const": 1000,
          "description": "Package price in USD cents."
        },
        "credits": {
          "type": "number",
          "const": 100
        }
      },
      "required": [
        "amount",
        "credits"
      ]
    },
    "operations": {
      "type": "object",
      "properties": {
        "write": {
          "type": "number",
          "const": 1
        },
        "check": {
          "type": "number",
          "const": 5
        },
        "resolve": {
          "type": "number",
          "const": 1
        },
        "import": {
          "type": "number",
          "const": 1
        },
        "export": {
          "type": "number",
          "const": 1
        }
      },
      "required": [
        "write",
        "check",
        "resolve",
        "import",
        "export"
      ]
    },
    "expires": {
      "type": "boolean",
      "const": false
    }
  },
  "required": [
    "currency",
    "package",
    "operations",
    "expires"
  ]
}