-
Notifications
You must be signed in to change notification settings - Fork 0
/
mappingRule.json
54 lines (54 loc) · 1.44 KB
/
mappingRule.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Mapping rule detail",
"type": "object",
"javaType": "org.folio.rest.jaxrs.model.MappingRule",
"additionalProperties": false,
"properties": {
"name": {
"description": "Name of field",
"type": "string"
},
"enabled": {
"description": "Indicates whether field should be mapped and be available on UI",
"type": "string"
},
"required": {
"description": "Indicates whether field is required and should be validated",
"type": "boolean",
"default": false
},
"path": {
"description": "JSON path to set mapped value",
"type": "string"
},
"value": {
"description": "Mapping expression",
"type": "string"
},
"booleanFieldAction": {
"description": "Action for boolean field",
"type": "string",
"$ref": "booleanFieldActions.json"
},
"repeatableFieldAction": {
"description": "Action for repeatable field",
"type": "string",
"$ref": "repeatableFieldActions.json"
},
"subfields": {
"description": "List of fields for repeatable subfield",
"type": "array",
"items": {
"$ref": "repeatableSubfieldMapping.json"
}
},
"acceptedValues": {
"description": "HashMap with objects. Key - UUID, Value - name value",
"javaType": "java.util.HashMap<String, String>"
}
},
"required": [
"name"
]
}