changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "oneOf": [
+ {
+ "properties": {
+ "errors": {
+ "maxItems": 0
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "levels": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "href": {
+ "type": "string"
+ },
+ "lessonCount": {
+ "type": "number"
+ },
+ "level": {
+ "type": "number"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "level",
+ "title",
+ "href",
+ "lessonCount"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "levels"
+ ],
+ "type": "object"
+ },
+ "success": {
+ "const": true
+ }
+ }
+ },
+ {
+ "properties": {
+ "errors": {
+ "minItems": 1
+ },
+ "result": {
+ "type": "null"
+ },
+ "success": {
+ "const": false
+ }
+ }
+ }
+ ],
+ "properties": {
+ "errors": {
+ "items": {
+ "additionalProperties": true,
+ "properties": {
+ "code": {
+ "type": "number"
+ },
+ "documentation_url": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "hint": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "message": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "slug": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "slug",
+ "message",
+ "hint",
+ "documentation_url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "messages": {
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "result": {},
+ "success": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "success",
+ "result",
+ "errors",
+ "messages",
+ "request_id"
+ ],
+ "type": "object"
+}