|
33 | 33 | "properties": {}, |
34 | 34 | "patternProperties": { |
35 | 35 | ".*": { |
36 | | - "oneOf": [{ |
37 | | - "description": "Output key to map value onto within destination object", |
38 | | - "type": "string" |
39 | | - }, { |
40 | | - "description": "List of outputs within destination object", |
41 | | - "type": "array", |
42 | | - "items": { |
43 | | - "oneOf": [{ |
44 | | - "description": "Output key to map value onto within destination object", |
45 | | - "type": "string" |
46 | | - }, { |
47 | | - "type": "object", |
48 | | - "additionalProperties": true, |
49 | | - "properties": { |
50 | | - "key": { |
51 | | - "description": "Output key to map value onto within destination object", |
52 | | - "type": "string" |
53 | | - }, |
54 | | - "transform": { |
55 | | - "description": "Function to transform the output value; see also: https://github.com/wankdanker/node-object-mapper", |
56 | | - "type": "object", |
57 | | - "additionalProperties": true |
58 | | - } |
59 | | - }, |
60 | | - "required": ["key"] |
61 | | - }] |
62 | | - } |
63 | | - }] |
| 36 | + "$ref": "#/definitions/PropertyMappingItem" |
64 | 37 | } |
65 | 38 | } |
66 | 39 | }, |
|
87 | 60 | "additionalProperties": true |
88 | 61 | }] |
89 | 62 | } |
| 63 | + }, |
| 64 | + "definitions": { |
| 65 | + "PropertyMappingItem": { |
| 66 | + "oneOf": [{ |
| 67 | + "description": "Output key to map value onto within destination object", |
| 68 | + "type": "string" |
| 69 | + }, { |
| 70 | + "description": "List of outputs within destination object", |
| 71 | + "type": "array", |
| 72 | + "items": { |
| 73 | + "oneOf": [{ |
| 74 | + "description": "Output key to map value onto within destination object", |
| 75 | + "type": "string" |
| 76 | + }, { |
| 77 | + "$ref": "#/definitions/PropertyMappingObject" |
| 78 | + }] |
| 79 | + } |
| 80 | + }, { |
| 81 | + "$ref": "#/definitions/PropertyMappingObject" |
| 82 | + }] |
| 83 | + }, |
| 84 | + "PropertyMappingObject": { |
| 85 | + "type": "object", |
| 86 | + "additionalProperties": true, |
| 87 | + "properties": { |
| 88 | + "key": { |
| 89 | + "description": "Output key to map value onto within destination object", |
| 90 | + "type": "string" |
| 91 | + }, |
| 92 | + "transform": { |
| 93 | + "description": "Function to transform the output value; see also: https://github.com/wankdanker/node-object-mapper", |
| 94 | + "type": "object", |
| 95 | + "additionalProperties": true |
| 96 | + } |
| 97 | + }, |
| 98 | + "required": ["key"] |
| 99 | + } |
90 | 100 | } |
91 | 101 | } |
0 commit comments