Skip to content

Commit ed641e0

Browse files
committed
Added adapter for converting Polyglot types to OpenAPI types
1 parent 86027d1 commit ed641e0

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

polyglot/adapter.json

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
/**
2+
* Copyright © 2016-2018 by IntegrIT S.A. dba Hackolade. All rights reserved.
3+
*
4+
* The copyright to the computer software herein is the property of IntegrIT S.A.
5+
* The software may be used and/or copied only with the written permission of
6+
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
7+
* the agreement/contract under which the software has been supplied.
8+
*
9+
* {
10+
* "add": {
11+
* "entity": [<names of new property>],
12+
* "container": [<names of new property>],
13+
* "model": [<names of new property>],
14+
* "view": [<names of new property>],
15+
* "field": {
16+
* "<type>": [<names of new property>]
17+
* }
18+
* },
19+
* "delete": {
20+
* "entity": [<names of new property>],
21+
* "container": [<names of new property>],
22+
* "model": [<names of new property>],
23+
* "view": [<names of new property>],
24+
* "field": {
25+
* "<type>": [<names of new property>]
26+
* }
27+
* },
28+
* "modify": {
29+
* "entity": [
30+
* {
31+
* "from": { <properties that identify record> },
32+
* "to": { <properties that need to be changed> }
33+
* }
34+
* ],
35+
* "container": [],
36+
* "model": [],
37+
* "view": [],
38+
* "field": []
39+
* },
40+
* }
41+
*/
42+
{
43+
"modify": {
44+
"field": [
45+
{
46+
"from": {
47+
"type": "date"
48+
},
49+
"to": {
50+
"type": "string",
51+
"format": "date"
52+
}
53+
},
54+
{
55+
"from": {
56+
"type": "time"
57+
},
58+
"to": {
59+
"type": "string",
60+
"format": "date-time"
61+
}
62+
},
63+
{
64+
"from": {
65+
"type": "timestamp_ltz"
66+
},
67+
"to": {
68+
"type": "string",
69+
"format": "date-time"
70+
}
71+
},
72+
{
73+
"from": {
74+
"type": "timestamp_ntz"
75+
},
76+
"to": {
77+
"type": "string",
78+
"format": "date-time"
79+
}
80+
},
81+
{
82+
"from": {
83+
"type": "timestamp_tz"
84+
},
85+
"to": {
86+
"type": "string",
87+
"format": "date-time"
88+
}
89+
}
90+
]
91+
}
92+
}

0 commit comments

Comments
 (0)