Skip to content

Commit 2ca339e

Browse files
committed
CXP-1300: add first mapping
1 parent 0ba7d07 commit 2ca339e

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

content/mapping/product/0.0.1/schema

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://api.akeneo.com/mapping/product/0.0.1/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+
"additionalProperties": { "$ref": "#/$defs/property" },
16+
"default": {}
17+
}
18+
},
19+
"$defs": {
20+
"$id": {
21+
"$comment": "Non-empty fragments not allowed.",
22+
"pattern": "^[^#]*#?$"
23+
},
24+
"$schema": { "$ref": "#/$defs/uriString" },
25+
"$comment": {
26+
"type": "string"
27+
},
28+
"$defs": {
29+
"type": "object",
30+
"additionalProperties": { "$ref": "#/$defs/property" }
31+
},
32+
"title": {
33+
"type": "string"
34+
},
35+
"description": {
36+
"type": "string"
37+
},
38+
"propertyType": {
39+
"enum": [
40+
"string"
41+
]
42+
},
43+
"property": {
44+
"type": "object",
45+
"properties": {
46+
"title": { "$ref": "#/$defs/title" },
47+
"description": { "$ref": "#/$defs/description" },
48+
"type": { "$ref": "#/$defs/propertyType" }
49+
},
50+
"additionalProperties": false,
51+
"required": ["type"]
52+
},
53+
"uriString": {
54+
"type": "string",
55+
"format": "uri"
56+
}
57+
},
58+
"additionalProperties": false
59+
}

tasks/copy-assets.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ gulp.task('copy-assets', ['clean-dist'], function(){
2828
.pipe(gulp.dest('dist/img/'));
2929
var files = gulp.src('content/files/*')
3030
.pipe(gulp.dest('dist/files/'));
31+
var files = gulp.src('content/mapping/**')
32+
.pipe(gulp.dest('dist/mapping/'));
3133

3234
return merge(fa, fonts, lib, img);
3335
});

0 commit comments

Comments
 (0)