{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/studiomeyer-academy/json-schema/studiomeyer-academy-nlweb-response-schema.json",
  "title": "NlwebResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/studiomeyer-academy-openapi.json#/components/schemas/NlwebResponse",
  "type": "object",
  "required": [
    "_meta",
    "results"
  ],
  "properties": {
    "_meta": {
      "type": "object",
      "required": [
        "response_type",
        "version",
        "response_format"
      ],
      "properties": {
        "response_type": {
          "type": "string",
          "enum": [
            "answer",
            "failure"
          ]
        },
        "version": {
          "type": "string",
          "const": "0.55"
        },
        "response_format": {
          "type": "string",
          "const": "conversational_search"
        },
        "streaming": {
          "type": "boolean",
          "const": true
        }
      }
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "@context",
          "@type",
          "url",
          "name",
          "description",
          "inLanguage",
          "isAccessibleForFree"
        ],
        "properties": {
          "@context": {
            "type": "string",
            "const": "https://schema.org"
          },
          "@type": {
            "type": "string",
            "enum": [
              "LearningResource",
              "DefinedTerm"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "inLanguage": {
            "type": "string",
            "enum": [
              "de",
              "en",
              "es"
            ]
          },
          "isAccessibleForFree": {
            "type": "boolean",
            "const": true
          }
        },
        "additionalProperties": false
      },
      "maxItems": 20
    },
    "error": {
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "NO_RESULTS",
            "INVALID_QUERY",
            "UNSUPPORTED_FORMAT",
            "UNSUPPORTED_MODE",
            "RATE_LIMITED",
            "INTERNAL_ERROR",
            "TIMEOUT"
          ]
        },
        "message": {
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}