Skip to content

Commit 8de99ae

Browse files
authored
Merge pull request #684 from akeneo/CXP-1334
CXP-1334: Added mapping 0.0.2
2 parents f141ee3 + eb9716f commit 8de99ae

File tree

1 file changed

+73
-0
lines changed
  • content/mapping/product/0.0.2

1 file changed

+73
-0
lines changed

content/mapping/product/0.0.2/schema

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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+
"required": ["uuid"]
21+
}
22+
},
23+
"$defs": {
24+
"$id": {
25+
"$comment": "Non-empty fragments not allowed.",
26+
"pattern": "^[^#]*#?$"
27+
},
28+
"$schema": { "$ref": "#/$defs/uriString" },
29+
"$comment": {
30+
"type": "string"
31+
},
32+
"$defs": {
33+
"type": "object",
34+
"additionalProperties": { "$ref": "#/$defs/property" }
35+
},
36+
"title": {
37+
"type": "string"
38+
},
39+
"description": {
40+
"type": "string"
41+
},
42+
"propertyType": {
43+
"enum": [
44+
"string"
45+
]
46+
},
47+
"property": {
48+
"type": "object",
49+
"properties": {
50+
"title": { "$ref": "#/$defs/title" },
51+
"description": { "$ref": "#/$defs/description" },
52+
"type": { "$ref": "#/$defs/propertyType" }
53+
},
54+
"additionalProperties": false,
55+
"required": ["type"]
56+
},
57+
"uriString": {
58+
"type": "string",
59+
"format": "uri"
60+
},
61+
"uuidProperty": {
62+
"type": "object",
63+
"properties": {
64+
"title": { "$ref": "#/$defs/title" },
65+
"description": { "$ref": "#/$defs/description" },
66+
"type": { "const": "string" }
67+
},
68+
"additionalProperties": false,
69+
"required": ["type"]
70+
}
71+
},
72+
"additionalProperties": false
73+
}

0 commit comments

Comments
 (0)