changedOutput schema / oneOf
Previous value: -[
- {
- "properties": {
- "errors": {
- "maxItems": 0
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "isContentContainer": {
- "type": "boolean"
- },
- "lessons": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "level": {
- "maximum": 6,
- "minimum": 1,
- "type": "integer"
- },
- "slug": {
- "maxLength": 180,
- "minLength": 1,
- "pattern": "^[a-z0-9][a-z0-9_.-]*$",
- "type": "string"
- }
- },
- "required": [
- "level",
- "slug"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "moduleId": {
- "type": "string"
- },
- "pathId": {
- "enum": [
- "loslegen",
- "ki-im-alltag",
- "ki-im-job",
- "fuer-entwickler"
- ],
- "type": "string"
- },
- "steps": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "bodyLocale": {
- "type": "string"
- },
- "bodyPending": {
- "type": "boolean"
- },
- "deepDiveOf": {
- "type": [
- "string",
- "null"
- ]
- },
- "description": {
- "type": "string"
- },
- "duration": {
- "type": "string"
- },
- "href": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "kind": {
- "enum": [
- "lesson",
- "playbook"
- ],
- "type": "string"
- },
- "level": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "locale": {
- "enum": [
- "de",
- "en",
- "es"
- ],
- "type": "string"
- },
- "moduleId": {
- "type": "string"
- },
- "optional": {
- "type": "boolean"
- },
- "order": {
- "type": "number"
- },
- "originalHref": {
- "type": "string"
- },
- "originalReference": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "href": {
- "type": "string"
- },
- "kind": {
- "const": "lesson",
- "type": "string"
- },
- "level": {
- "type": "number"
- },
- "locale": {
- "enum": [
- "de",
- "en",
- "es"
- ],
- "type": "string"
- },
- "slug": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "level",
- "slug",
- "locale",
- "href"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "slug": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "type": {
- "enum": [
- "lesson",
- "playbook",
- "capstone"
- ],
- "type": "string"
- }
- },
- "required": [
- "id",
- "kind",
- "type",
- "slug",
- "level",
- "locale",
- "title",
- "moduleId",
- "order",
- "optional",
- "deepDiveOf",
- "href",
- "originalHref",
- "originalReference"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "pathId",
- "moduleId",
- "title",
- "lessons",
- "steps",
- "isContentContainer"
- ],
- "type": "object"
- },
- "success": {
- "const": true
- }
- }
- },
- {
- "properties": {
- "errors": {
- "minItems": 1
- },
- "result": {
- "type": "null"
- },
- "success": {
- "const": false
- }
- }
- }
-]New value: +[
+ {
+ "properties": {
+ "errors": {
+ "maxItems": 0
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "isContentContainer": {
+ "type": "boolean"
+ },
+ "lessons": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "level": {
+ "description": "Original numbered lesson level, 1 through 6, from the path or search result. A slug alone may be ambiguous.",
+ "maximum": 6,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "slug": {
+ "description": "Exact lowercase content slug from an Academy path or catalog; preserve punctuation and do not substitute a translated title.",
+ "maxLength": 180,
+ "minLength": 1,
+ "pattern": "^[a-z0-9][a-z0-9_.-]*$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "level",
+ "slug"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "moduleId": {
+ "type": "string"
+ },
+ "pathId": {
+ "description": "Learning-path identifier from academy_paths, such as loslegen; use the stable id rather than a translated path title.",
+ "enum": [
+ "loslegen",
+ "ki-im-alltag",
+ "ki-im-job",
+ "fuer-entwickler"
+ ],
+ "type": "string"
+ },
+ "steps": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "bodyLocale": {
+ "type": "string"
+ },
+ "bodyPending": {
+ "type": "boolean"
+ },
+ "deepDiveOf": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "description": {
+ "type": "string"
+ },
+ "duration": {
+ "type": "string"
+ },
+ "href": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "lesson",
+ "playbook"
+ ],
+ "type": "string"
+ },
+ "level": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "locale": {
+ "description": "Content language: de for German, en for English or es for Spanish. The transport defaults to German when omitted.",
+ "enum": [
+ "de",
+ "en",
+ "es"
+ ],
+ "type": "string"
+ },
+ "moduleId": {
+ "type": "string"
+ },
+ "optional": {
+ "type": "boolean"
+ },
+ "order": {
+ "type": "number"
+ },
+ "originalHref": {
+ "type": "string"
+ },
+ "originalReference": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "href": {
+ "type": "string"
+ },
+ "kind": {
+ "const": "lesson",
+ "type": "string"
+ },
+ "level": {
+ "type": "number"
+ },
+ "locale": {
+ "description": "Content language: de for German, en for English or es for Spanish. The transport defaults to German when omitted.",
+ "enum": [
+ "de",
+ "en",
+ "es"
+ ],
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "level",
+ "slug",
+ "locale",
+ "href"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "slug": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "lesson",
+ "playbook",
+ "capstone"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "kind",
+ "type",
+ "slug",
+ "level",
+ "locale",
+ "title",
+ "moduleId",
+ "order",
+ "optional",
+ "deepDiveOf",
+ "href",
+ "originalHref",
+ "originalReference"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "pathId",
+ "moduleId",
+ "title",
+ "lessons",
+ "steps",
+ "isContentContainer"
+ ],
+ "type": "object"
+ },
+ "success": {
+ "const": true
+ }
+ }
+ },
+ {
+ "properties": {
+ "errors": {
+ "minItems": 1
+ },
+ "result": {
+ "type": "null"
+ },
+ "success": {
+ "const": false
+ }
+ }
+ }
+]