|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://api.akeneo.com/mapping/product/0.0.2/schema", |
| 4 | + "type": "object", |
| 5 | + "properties": { |
| 6 | + "$id": { "$ref": "#/$defs/$id" }, |
| 7 | + "$schema": { "$ref": "#/$defs/$schema" }, |
| 8 | + "$comment": { "$ref": "#/$defs/$comment" }, |
| 9 | + "$defs": { "$ref": "#/$defs/$defs" }, |
| 10 | + "title": { "$ref": "#/$defs/title" }, |
| 11 | + "description": { "$ref": "#/$defs/description" }, |
| 12 | + "type": { "const": "object" }, |
| 13 | + "properties": { |
| 14 | + "type": "object", |
| 15 | + "properties": { |
| 16 | + "uuid": { "$ref": "#/$defs/uuidProperty" } |
| 17 | + }, |
| 18 | + "additionalProperties": { "$ref": "#/$defs/property" }, |
| 19 | + "default": {} |
| 20 | + } |
| 21 | + }, |
| 22 | + "$defs": { |
| 23 | + "$id": { |
| 24 | + "$comment": "Non-empty fragments not allowed.", |
| 25 | + "pattern": "^[^#]*#?$" |
| 26 | + }, |
| 27 | + "$schema": { "$ref": "#/$defs/uriString" }, |
| 28 | + "$comment": { |
| 29 | + "type": "string" |
| 30 | + }, |
| 31 | + "$defs": { |
| 32 | + "type": "object", |
| 33 | + "additionalProperties": { "$ref": "#/$defs/property" } |
| 34 | + }, |
| 35 | + "title": { |
| 36 | + "type": "string" |
| 37 | + }, |
| 38 | + "description": { |
| 39 | + "type": "string" |
| 40 | + }, |
| 41 | + "propertyType": { |
| 42 | + "enum": [ |
| 43 | + "string" |
| 44 | + ] |
| 45 | + }, |
| 46 | + "property": { |
| 47 | + "type": "object", |
| 48 | + "properties": { |
| 49 | + "title": { "$ref": "#/$defs/title" }, |
| 50 | + "description": { "$ref": "#/$defs/description" }, |
| 51 | + "type": { "$ref": "#/$defs/propertyType" } |
| 52 | + }, |
| 53 | + "additionalProperties": false, |
| 54 | + "required": ["type"] |
| 55 | + }, |
| 56 | + "uriString": { |
| 57 | + "type": "string", |
| 58 | + "format": "uri" |
| 59 | + }, |
| 60 | + "uuidProperty": { |
| 61 | + "type": "object", |
| 62 | + "properties": { |
| 63 | + "type": { "const": "string" } |
| 64 | + }, |
| 65 | + "additionalProperties": false, |
| 66 | + "required": ["type"] |
| 67 | + } |
| 68 | + }, |
| 69 | + "additionalProperties": false |
| 70 | +} |
0 commit comments