changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": true,
+ "properties": {
+ "_sakina_meta": {
+ "additionalProperties": true,
+ "properties": {
+ "content_type": {
+ "enum": [
+ "verse_collection",
+ "not_found",
+ "crisis_resource_only"
+ ],
+ "type": "string"
+ },
+ "disclaimer": {
+ "type": "string"
+ },
+ "disclaimer_locale": {
+ "const": "en",
+ "type": "string"
+ },
+ "educational_context": {
+ "type": "string"
+ },
+ "llm_directives": {
+ "additionalProperties": true,
+ "properties": {
+ "CRITICAL_RULES": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "CRITICAL_RULES"
+ ],
+ "type": "object"
+ },
+ "presentation_contract": {
+ "additionalProperties": true,
+ "properties": {},
+ "type": "object"
+ },
+ "source": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "version",
+ "source",
+ "content_type",
+ "disclaimer",
+ "llm_directives",
+ "presentation_contract",
+ "educational_context"
+ ],
+ "type": "object"
+ },
+ "content": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "properties": {
+ "matched_themes": {
+ "items": {
+ "additionalProperties": true,
+ "properties": {
+ "theme": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "theme"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "no_results": {
+ "type": "boolean"
+ },
+ "query": {
+ "type": "string"
+ },
+ "total_results": {
+ "type": "integer"
+ },
+ "verses": {
+ "items": {
+ "additionalProperties": true,
+ "properties": {
+ "arabic": {
+ "type": "string"
+ },
+ "reference": {
+ "type": "string"
+ },
+ "relevance_note": {
+ "type": "string"
+ },
+ "surah_name_arabic": {
+ "type": "string"
+ },
+ "surah_name_english": {
+ "type": "string"
+ },
+ "translation": {
+ "type": "string"
+ },
+ "translation_source": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reference",
+ "surah_name_english",
+ "surah_name_arabic",
+ "arabic",
+ "translation",
+ "translation_source",
+ "relevance_note"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "query",
+ "matched_themes",
+ "verses",
+ "total_results",
+ "no_results"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": true,
+ "properties": {
+ "available_themes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "no_results": {
+ "type": "boolean"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "requested": {
+ "additionalProperties": true,
+ "properties": {
+ "query": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "query"
+ ],
+ "type": "object"
+ },
+ "total_results": {
+ "type": "integer"
+ },
+ "verses": {
+ "items": {},
+ "type": "array"
+ }
+ },
+ "required": [
+ "requested",
+ "verses",
+ "total_results",
+ "no_results",
+ "reason",
+ "available_themes"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": true,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "requested": {
+ "additionalProperties": true,
+ "properties": {
+ "query": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "query"
+ ],
+ "type": "object"
+ },
+ "withheld": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "requested",
+ "withheld",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "crisis_resource": {
+ "additionalProperties": true,
+ "description": "Present this block exactly, before anything else, and add nothing religious when content_type is crisis_resource_only.",
+ "properties": {
+ "crisis_type": {
+ "type": "string"
+ },
+ "directive": {
+ "type": "string"
+ },
+ "level": {
+ "enum": [
+ "hard",
+ "soft"
+ ],
+ "type": "string"
+ },
+ "locale": {
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "level",
+ "locale",
+ "directive",
+ "text"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "_sakina_meta",
+ "content"
+ ],
+ "type": "object"
+}