forked from loafle/openapi-generator-original
Compare commits
486 Commits
fix_inner_
...
nodejs-fas
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
605030dfeb | ||
|
|
ecb11fbe7f | ||
|
|
5cd3a16e56 | ||
|
|
182264cbdd | ||
|
|
ee69861a90 | ||
|
|
69ad9a9957 | ||
|
|
9c7d4073f4 | ||
|
|
f4fa941e2b | ||
|
|
c81c09b941 | ||
|
|
822234dd76 | ||
|
|
18b500218a | ||
|
|
977df6e232 | ||
|
|
976ab4fd0f | ||
|
|
8977d7b366 | ||
|
|
c4d982f775 | ||
|
|
f26d7bdea7 | ||
|
|
3bb4edf865 | ||
|
|
0bc06f8d4d | ||
|
|
d056df6250 | ||
|
|
cd6779584f | ||
|
|
09ba78b26a | ||
|
|
e58d7d09d5 | ||
|
|
9d10ffdb38 | ||
|
|
88cdbbc41f | ||
|
|
3a0d520c38 | ||
|
|
1313cff93a | ||
|
|
a079f70fb2 | ||
|
|
74fbd3454b | ||
|
|
46e8ccbd1e | ||
|
|
0f99cd0d37 | ||
|
|
7ab73ff587 | ||
|
|
1c1c1ef9c3 | ||
|
|
2ce3574868 | ||
|
|
81c57eefd5 | ||
|
|
6e7c621629 | ||
|
|
41b5d0e8fc | ||
|
|
09d27e82e7 | ||
|
|
393f5e499e | ||
|
|
d795c4e9d0 | ||
|
|
01e8c67da9 | ||
|
|
d4244be654 | ||
|
|
5a6f4cb4a9 | ||
|
|
5d05cc0e66 | ||
|
|
28ae33cb13 | ||
|
|
9e391efd1d | ||
|
|
173ae6f368 | ||
|
|
7af272a249 | ||
|
|
879d47ccd0 | ||
|
|
65e36e8369 | ||
|
|
f015363dbd | ||
|
|
3677bdcfc7 | ||
|
|
3810d12086 | ||
|
|
c918d7ad64 | ||
|
|
5346eb4c34 | ||
|
|
3e065db2c6 | ||
|
|
5074f4d9c5 | ||
|
|
df0d53795c | ||
|
|
3b017c59f1 | ||
|
|
e0caa6fd66 | ||
|
|
0935f5345d | ||
|
|
f7943257c5 | ||
|
|
033ab8a6f5 | ||
|
|
1adc962f2b | ||
|
|
94c267ee42 | ||
|
|
4a7dfecf24 | ||
|
|
db1b63780d | ||
|
|
e3716262e5 | ||
|
|
ee75366051 | ||
|
|
d839af5b1e | ||
|
|
2e777c04d4 | ||
|
|
b1955f3517 | ||
|
|
45ad72b032 | ||
|
|
2101780a09 | ||
|
|
1a19edb0e5 | ||
|
|
2f8e4fe32b | ||
|
|
77545df80d | ||
|
|
dc78405a68 | ||
|
|
fef2970dab | ||
|
|
522ccee7f3 | ||
|
|
d32564da51 | ||
|
|
49f3e9a355 | ||
|
|
37c275b3fb | ||
|
|
8bb01ed149 | ||
|
|
218c2e75ab | ||
|
|
b67318ef21 | ||
|
|
c10463600a | ||
|
|
59cdea7b5e | ||
|
|
3100afce26 | ||
|
|
546a230c73 | ||
|
|
8df619ef8a | ||
|
|
bf7838cd81 | ||
|
|
3320d3cbe1 | ||
|
|
7ad479e13d | ||
|
|
43fcd19509 | ||
|
|
93baa5d835 | ||
|
|
d93fd31bb1 | ||
|
|
1f45ea7d1a | ||
|
|
0b15fac3e1 | ||
|
|
ed30e85d1e | ||
|
|
82700e5958 | ||
|
|
9bb94fe95d | ||
|
|
d18bf044e8 | ||
|
|
a57504481b | ||
|
|
28ddad44e5 | ||
|
|
22d21afceb | ||
|
|
a6a1264f25 | ||
|
|
40253a5b82 | ||
|
|
94466d54b3 | ||
|
|
2ea4025d2b | ||
|
|
f41f50c3e5 | ||
|
|
e5a0d18374 | ||
|
|
07e8b5ae03 | ||
|
|
243ec9aa8e | ||
|
|
c9737cf97d | ||
|
|
5ba35ecd31 | ||
|
|
065bbc7bdb | ||
|
|
f2ff473155 | ||
|
|
3e085e9492 | ||
|
|
83bc863b2b | ||
|
|
33786e11f3 | ||
|
|
ce60dbbc58 | ||
|
|
302b2fafff | ||
|
|
a2d6073110 | ||
|
|
7ba973ca7c | ||
|
|
fcfe687f19 | ||
|
|
317168fe9d | ||
|
|
c8ecc5bf45 | ||
|
|
d2244a3baf | ||
|
|
fde3252924 | ||
|
|
b1dc2eeaac | ||
|
|
80f6433779 | ||
|
|
85b936b498 | ||
|
|
1491c7037c | ||
|
|
a0d907cf27 | ||
|
|
d2ce584a3a | ||
|
|
aa7ea8bdca | ||
|
|
b128d14707 | ||
|
|
3ba6d8226e | ||
|
|
b0aac250c6 | ||
|
|
f39e200e5d | ||
|
|
cdb447d187 | ||
|
|
3739584a1a | ||
|
|
ab8ee710a1 | ||
|
|
a797dd668b | ||
|
|
c6a5017a13 | ||
|
|
882186f461 | ||
|
|
a06e957430 | ||
|
|
6848c524d7 | ||
|
|
7124b119ea | ||
|
|
93486369fe | ||
|
|
b302c16f74 | ||
|
|
a55fb7adc5 | ||
|
|
e6b7ee6f4c | ||
|
|
d653d2d495 | ||
|
|
14aacfaa63 | ||
|
|
c00a439dcd | ||
|
|
8a0248eee0 | ||
|
|
49ef024cf6 | ||
|
|
e810848a03 | ||
|
|
49b15ee518 | ||
|
|
9236e50098 | ||
|
|
6a9117edd1 | ||
|
|
ac69b2da1a | ||
|
|
0cd5fb6dc2 | ||
|
|
0695cf99e6 | ||
|
|
4f37e81d55 | ||
|
|
58773a3659 | ||
|
|
2807ed0af9 | ||
|
|
2985c0f0b8 | ||
|
|
37c890f755 | ||
|
|
bcb4b03798 | ||
|
|
c57abbe5bd | ||
|
|
caf404d857 | ||
|
|
cc1fe6eebf | ||
|
|
0c54286909 | ||
|
|
1d02f0374b | ||
|
|
88abea1755 | ||
|
|
24df02a191 | ||
|
|
8843df65a4 | ||
|
|
8c88f46fba | ||
|
|
24f20941e5 | ||
|
|
f47af5e6f0 | ||
|
|
9829e06790 | ||
|
|
052879d6cb | ||
|
|
c30a21ac3c | ||
|
|
84b99fea54 | ||
|
|
54d9c19c77 | ||
|
|
92757581d6 | ||
|
|
7235e6d962 | ||
|
|
5fe0c94135 | ||
|
|
b5ce0bddee | ||
|
|
aa339d6046 | ||
|
|
9e2a9e1515 | ||
|
|
9695090d9b | ||
|
|
8e7ad9c9b6 | ||
|
|
63eb9298cf | ||
|
|
a36319185b | ||
|
|
e6658278ad | ||
|
|
7486438491 | ||
|
|
8ba93f1952 | ||
|
|
f2002b25da | ||
|
|
163b00459f | ||
|
|
329843bc92 | ||
|
|
0650d2f60e | ||
|
|
ae376c151b | ||
|
|
bc6c94d412 | ||
|
|
1d08296f96 | ||
|
|
c79d27708f | ||
|
|
fda867ebfe | ||
|
|
1dadd45ffe | ||
|
|
61b6f19d74 | ||
|
|
70180e074c | ||
|
|
a3566cd34f | ||
|
|
a440396485 | ||
|
|
cd1885d29e | ||
|
|
b4c36425c2 | ||
|
|
534ff3607f | ||
|
|
8d6278bd4c | ||
|
|
aace459217 | ||
|
|
b4b8c28b2a | ||
|
|
594af33fb8 | ||
|
|
ad8aa7dc0e | ||
|
|
8d5b600277 | ||
|
|
33e50e6d46 | ||
|
|
851d11cf72 | ||
|
|
027e6c4a5c | ||
|
|
cefd29b6ff | ||
|
|
7cb6a38150 | ||
|
|
42544b8234 | ||
|
|
161cb88e88 | ||
|
|
2593d78ce6 | ||
|
|
d87a3b90da | ||
|
|
e01a786bc9 | ||
|
|
804b589f5f | ||
|
|
550774a6e2 | ||
|
|
598bf0cd09 | ||
|
|
b6c2266a14 | ||
|
|
ea08106c80 | ||
|
|
de33360883 | ||
|
|
add63cb981 | ||
|
|
f1fa0a80ad | ||
|
|
fd0847864a | ||
|
|
4e85993490 | ||
|
|
8707f943c0 | ||
|
|
33a8939bd5 | ||
|
|
5c64b58bae | ||
|
|
ba9c12f2e0 | ||
|
|
73d309b9ba | ||
|
|
f76dca84f5 | ||
|
|
302922b8a4 | ||
|
|
773aa269ae | ||
|
|
7dcffff20b | ||
|
|
20d5adcdd5 | ||
|
|
e0ed6719a0 | ||
|
|
ef7b28de00 | ||
|
|
348c22c883 | ||
|
|
8f5fa4df83 | ||
|
|
cf6f10252d | ||
|
|
0b10092262 | ||
|
|
cd2ff0b041 | ||
|
|
0a2fb8db8f | ||
|
|
36fa7102dd | ||
|
|
7cee2b62e4 | ||
|
|
5281ea8bef | ||
|
|
aa24f07433 | ||
|
|
aa15882e2b | ||
|
|
f1a56447ba | ||
|
|
dd3e6c6a3b | ||
|
|
28768244d6 | ||
|
|
532743b4f9 | ||
|
|
0b66fa5c82 | ||
|
|
454adec32d | ||
|
|
931c03beca | ||
|
|
f4088f8ee8 | ||
|
|
f56bc79db6 | ||
|
|
6f4ba25cd8 | ||
|
|
888068d122 | ||
|
|
16f52cf2ad | ||
|
|
6a414af13f | ||
|
|
453eeb9e40 | ||
|
|
6801741592 | ||
|
|
cbda3fad98 | ||
|
|
f946492e7e | ||
|
|
562442764a | ||
|
|
2eb99f602a | ||
|
|
77d2de4e3d | ||
|
|
c871e3bc81 | ||
|
|
02a8dad77c | ||
|
|
bcfa86d401 | ||
|
|
83d34bd8d7 | ||
|
|
046db19a85 | ||
|
|
6f16b45976 | ||
|
|
7811390b7b | ||
|
|
887b688014 | ||
|
|
9029103c94 | ||
|
|
c438f67b66 | ||
|
|
4f8164e713 | ||
|
|
706192980c | ||
|
|
860b91e45e | ||
|
|
1a07bd6573 | ||
|
|
9ec594eec5 | ||
|
|
65d9e859be | ||
|
|
bc6997f0e5 | ||
|
|
827e68ca1c | ||
|
|
33b7547da3 | ||
|
|
69323aec48 | ||
|
|
3757ffe0ba | ||
|
|
3ea6cf356f | ||
|
|
af634c77c4 | ||
|
|
e48a8fea1d | ||
|
|
47e262fbb1 | ||
|
|
4ca7158aa2 | ||
|
|
dce5ed229f | ||
|
|
e0de5d6135 | ||
|
|
4c5231ea7a | ||
|
|
2fa0e810bf | ||
|
|
ab840ff000 | ||
|
|
eeb3d7765b | ||
|
|
2220a2ca85 | ||
|
|
d33c4bb4a3 | ||
|
|
956512a9bf | ||
|
|
b2bebe914e | ||
|
|
b27d99088c | ||
|
|
38ea7952bb | ||
|
|
95a1ff1ab1 | ||
|
|
f415332406 | ||
|
|
06824622bf | ||
|
|
c16354218a | ||
|
|
c51f333f6c | ||
|
|
6fe9a52229 | ||
|
|
9cba9b6f88 | ||
|
|
4df8c3cf64 | ||
|
|
17218117b9 | ||
|
|
f4133e726d | ||
|
|
7437084cd3 | ||
|
|
60323bf186 | ||
|
|
eee4849a5e | ||
|
|
60ca0fb338 | ||
|
|
1676aefa8b | ||
|
|
192e366bff | ||
|
|
832b4ef512 | ||
|
|
4117b2ebb1 | ||
|
|
e0137f670c | ||
|
|
f5d6aaebb2 | ||
|
|
df8137cf21 | ||
|
|
22ce88eb26 | ||
|
|
dec852ca9f | ||
|
|
03711d572f | ||
|
|
963c002830 | ||
|
|
2162d34ed7 | ||
|
|
db9102a440 | ||
|
|
d2769e646e | ||
|
|
b4fecd9f9e | ||
|
|
7674d11d75 | ||
|
|
1be9d66911 | ||
|
|
28c9b11195 | ||
|
|
470fc2065d | ||
|
|
4235390175 | ||
|
|
80ca67cfda | ||
|
|
4652023b7c | ||
|
|
00a9cfdbc9 | ||
|
|
4fa926604f | ||
|
|
8305df6b4a | ||
|
|
faf1f5d81d | ||
|
|
d584833781 | ||
|
|
992ca3e8ed | ||
|
|
12a5ba2bee | ||
|
|
814a697c81 | ||
|
|
3b7f4c3879 | ||
|
|
b87a507a13 | ||
|
|
87d5484f2e | ||
|
|
581bac83e9 | ||
|
|
8539831126 | ||
|
|
539ec23298 | ||
|
|
189849319c | ||
|
|
60dd3d51be | ||
|
|
4c14c85542 | ||
|
|
9331df791f | ||
|
|
9ccf872290 | ||
|
|
293066bb0d | ||
|
|
fbf570e7bd | ||
|
|
ed5bd5ffb0 | ||
|
|
233ce093e5 | ||
|
|
b7971e2e3d | ||
|
|
1ef56b44c2 | ||
|
|
22a3f7ee0e | ||
|
|
6e4556772c | ||
|
|
549197cce5 | ||
|
|
60776b8cb5 | ||
|
|
eff0c5e8d0 | ||
|
|
1189362466 | ||
|
|
f0f214743e | ||
|
|
651395d426 | ||
|
|
fda35ea263 | ||
|
|
c65ef987af | ||
|
|
b015ac9307 | ||
|
|
bdf32775fb | ||
|
|
1a2deb016b | ||
|
|
b25eeebf03 | ||
|
|
8f561f1ef3 | ||
|
|
b931da2909 | ||
|
|
fa9bd1f567 | ||
|
|
d35f4b08d9 | ||
|
|
be262384cd | ||
|
|
5729ce176c | ||
|
|
3d59d8b58f | ||
|
|
59db7cc568 | ||
|
|
ad5184efc1 | ||
|
|
92db181d97 | ||
|
|
8fd474d4a7 | ||
|
|
af6757ccde | ||
|
|
9334dd391a | ||
|
|
d6fa9e60c6 | ||
|
|
6abb9ddf30 | ||
|
|
e559474880 | ||
|
|
354db2f3e6 | ||
|
|
f96e64bd9e | ||
|
|
3ec90a86cb | ||
|
|
2f6381cb19 | ||
|
|
5730f6224a | ||
|
|
0fca90133c | ||
|
|
2c051f265c | ||
|
|
e8ac630ca5 | ||
|
|
a0e5b74b2b | ||
|
|
321416e960 | ||
|
|
2e727f6dc7 | ||
|
|
7cee999543 | ||
|
|
77b5cea518 | ||
|
|
6a4f3385d8 | ||
|
|
e821a58fd1 | ||
|
|
5400a7e445 | ||
|
|
1db105b6f9 | ||
|
|
06a67ce6e4 | ||
|
|
5952bec6bf | ||
|
|
5f2d79b669 | ||
|
|
177deb918a | ||
|
|
5d98fc6beb | ||
|
|
292d987f15 | ||
|
|
c2273a651a | ||
|
|
902a4b4099 | ||
|
|
c13e089c85 | ||
|
|
c62a1f11ee | ||
|
|
aa1cfd81fe | ||
|
|
e4f80dcc0e | ||
|
|
120c0a05f0 | ||
|
|
7595baef00 | ||
|
|
0dee995ebb | ||
|
|
aed2c882da | ||
|
|
92badd8d49 | ||
|
|
72dcee9d86 | ||
|
|
f1831533d4 | ||
|
|
05107032d1 | ||
|
|
2ccfdc8e5d | ||
|
|
13f5064ea4 | ||
|
|
667275fb25 | ||
|
|
a7dfc650b6 | ||
|
|
43abd61144 | ||
|
|
2a11f55267 | ||
|
|
77edec0c65 | ||
|
|
9e1cce2e7b | ||
|
|
77270a0118 | ||
|
|
4a494b45d3 | ||
|
|
10ecc0e52f | ||
|
|
89a0ffa66c | ||
|
|
d38b9e588b | ||
|
|
b6e80e86b2 | ||
|
|
f188fa08e5 | ||
|
|
93c13074ff | ||
|
|
9ff8a24895 | ||
|
|
98ae7a816c | ||
|
|
2025d128b3 | ||
|
|
81cf611aa4 | ||
|
|
d7d994620c | ||
|
|
b6a23986b3 | ||
|
|
33fbd9c78b | ||
|
|
3896821d5e | ||
|
|
fb15a4baf3 | ||
|
|
c05dc24e6a | ||
|
|
06150767f4 | ||
|
|
7609398150 | ||
|
|
82fcde1d91 | ||
|
|
cacce1f707 | ||
|
|
8c599ebf12 | ||
|
|
587bd56655 | ||
|
|
1f95b54cef | ||
|
|
95c744381b |
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
**/*.mustache linguist-vendored=true
|
||||||
117
.github/.test/auto-labeler.js
vendored
Normal file
117
.github/.test/auto-labeler.js
vendored
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
let fs = require('fs');
|
||||||
|
let path = require('path');
|
||||||
|
let util = require('util');
|
||||||
|
let yaml = require('./js-yaml.js');
|
||||||
|
let samples = require('./samples.json');
|
||||||
|
|
||||||
|
class LabelMatch {
|
||||||
|
constructor (match, label) {
|
||||||
|
this.match = match;
|
||||||
|
this.label = label;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class FileError {
|
||||||
|
constructor (file, actualLabels, expectedLabels) {
|
||||||
|
this.file = file;
|
||||||
|
this.actual = actualLabels;
|
||||||
|
this.expected = expectedLabels;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class TextError {
|
||||||
|
constructor (text, actualLabels, expectedLabels) {
|
||||||
|
this.text = text;
|
||||||
|
this.actual = actualLabels;
|
||||||
|
this.expected = expectedLabels;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let labels = [];
|
||||||
|
|
||||||
|
function labelsForFile(file) {
|
||||||
|
let body = fs.readFileSync(file);
|
||||||
|
return labelsForText(body)
|
||||||
|
}
|
||||||
|
|
||||||
|
function labelsForText(text) {
|
||||||
|
let addLabels = new Set();
|
||||||
|
let body = text;
|
||||||
|
for (const v of labels) {
|
||||||
|
if (v.match.test(body)) {
|
||||||
|
addLabels.add(v.label)
|
||||||
|
}
|
||||||
|
// reset regex state
|
||||||
|
v.match.lastIndex = 0
|
||||||
|
}
|
||||||
|
return addLabels;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
let config = yaml.safeLoad(fs.readFileSync('../auto-labeler.yml', 'utf8'));
|
||||||
|
|
||||||
|
if (config && config.labels && Object.keys(config.labels).length > 0) {
|
||||||
|
for (const labelName in config.labels) {
|
||||||
|
if (config.labels.hasOwnProperty(labelName)) {
|
||||||
|
let matchAgainst = config.labels[labelName];
|
||||||
|
if (Array.isArray(matchAgainst)) {
|
||||||
|
matchAgainst.forEach(regex => {
|
||||||
|
// noinspection JSCheckFunctionSignatures
|
||||||
|
labels.push(new LabelMatch(new RegExp(regex, 'g'), labelName));
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (labels.length === 0) {
|
||||||
|
// noinspection ExceptionCaughtLocallyJS
|
||||||
|
throw new Error("Expected to parse config.labels, but failed.")
|
||||||
|
}
|
||||||
|
|
||||||
|
let fileErrors = [];
|
||||||
|
samples.files.forEach(function(tester){
|
||||||
|
let file = path.normalize(path.join('..', '..', 'bin', tester.input));
|
||||||
|
let expectedLabels = new Set(tester.matches);
|
||||||
|
let actualLabels = labelsForFile(file);
|
||||||
|
let difference = new Set([...actualLabels].filter(x => !expectedLabels.has(x)));
|
||||||
|
if (difference.size > 0) {
|
||||||
|
fileErrors.push(new FileError(file, actualLabels, expectedLabels));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
let textErrors = [];
|
||||||
|
samples.text.forEach(function(tester){
|
||||||
|
let expectedLabels = new Set(tester.matches);
|
||||||
|
let actualLabels = labelsForText(tester.input);
|
||||||
|
let difference = new Set([...actualLabels].filter(x => !expectedLabels.has(x)));
|
||||||
|
if (difference.size > 0) {
|
||||||
|
textErrors.push(new TextError(tester.input, actualLabels, expectedLabels));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// These are separate (file vs text) in case we want to preview where these would fail in the file. not priority at the moment.
|
||||||
|
if (fileErrors.length > 0) {
|
||||||
|
console.warn('There were %d file tester errors', fileErrors.length);
|
||||||
|
fileErrors.forEach(function(errs) {
|
||||||
|
console.log("file: %j\n actual: %j\n expected: %j", errs.file, util.inspect(errs.actual), util.inspect(errs.expected))
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (textErrors.length > 0) {
|
||||||
|
console.warn('There were %d text tester errors', textErrors.length);
|
||||||
|
textErrors.forEach(function(errs){
|
||||||
|
console.log("input: %j\n actual: %j\n expected: %j", errs.text, util.inspect(errs.actual), util.inspect(errs.expected))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
let totalErrors = fileErrors.length + textErrors.length;
|
||||||
|
if (totalErrors === 0) {
|
||||||
|
console.log('Success!');
|
||||||
|
} else {
|
||||||
|
console.log('Failure: %d total errors', totalErrors);
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
|
|
||||||
3917
.github/.test/js-yaml.js
vendored
Normal file
3917
.github/.test/js-yaml.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1292
.github/.test/samples.json
vendored
Normal file
1292
.github/.test/samples.json
vendored
Normal file
File diff suppressed because it is too large
Load Diff
9
.github/ISSUE_TEMPLATE/bug_report.md
vendored
9
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -7,6 +7,15 @@ assignees: ''
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
#### Bug Report Checklist
|
||||||
|
|
||||||
|
- [ ] Have you provided a full/minimal spec to reproduce the issue?
|
||||||
|
- [ ] Have you validated the input using an OpenAPI validator ([example](https://apidevtools.org/swagger-parser/online/))?
|
||||||
|
- [ ] What's the version of OpenAPI Generator used?
|
||||||
|
- [ ] Have you search for related issues/PRs?
|
||||||
|
- [ ] What's the actual output vs expected output?
|
||||||
|
- [ ] [Optional] Bounty to sponsor the fix ([example](https://www.bountysource.com/issues/66123212-javascript-client-produces-a-wrong-object-for-a-string-enum-type-that-is-used-with-ref))
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Please follow the issue template below for bug reports.
|
Please follow the issue template below for bug reports.
|
||||||
Also please indicate in the issue title which language/library is concerned. Eg: [BUG][JAVA] Bug generating foo with bar
|
Also please indicate in the issue title which language/library is concerned. Eg: [BUG][JAVA] Bug generating foo with bar
|
||||||
|
|||||||
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -1,7 +1,7 @@
|
|||||||
### PR checklist
|
### PR checklist
|
||||||
|
|
||||||
- [ ] Read the [contribution guidelines](https://github.com/openapitools/openapi-generator/blob/master/CONTRIBUTING.md).
|
- [ ] Read the [contribution guidelines](https://github.com/openapitools/openapi-generator/blob/master/CONTRIBUTING.md).
|
||||||
- [ ] Ran the shell script under `./bin/` to update Petstore sample so that CIs can verify the change. (For instance, only need to run `./bin/{LANG}-petstore.sh` and `./bin/security/{LANG}-petstore.sh` if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in `.\bin\windows\`.
|
- [ ] Ran the shell script under `./bin/` to update Petstore sample so that CIs can verify the change. (For instance, only need to run `./bin/{LANG}-petstore.sh`, `./bin/openapi3/{LANG}-petstore.sh` if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in `.\bin\windows\`.
|
||||||
- [ ] Filed the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master`~~, `3.4.x`, `4.0.x`~~. Default: `master`.
|
- [ ] Filed the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master`~~, `3.4.x`, `4.0.x`~~. Default: `master`.
|
||||||
- [ ] Copied the [technical committee](https://github.com/openapitools/openapi-generator/#62---openapi-generator-technical-committee) to review the pull request if your PR is targeting a particular programming language.
|
- [ ] Copied the [technical committee](https://github.com/openapitools/openapi-generator/#62---openapi-generator-technical-committee) to review the pull request if your PR is targeting a particular programming language.
|
||||||
|
|
||||||
|
|||||||
290
.github/auto-labeler.yml
vendored
Normal file
290
.github/auto-labeler.yml
vendored
Normal file
@@ -0,0 +1,290 @@
|
|||||||
|
comment: |
|
||||||
|
👍 Thanks for opening this issue!
|
||||||
|
🏷 I have applied any labels matching special text in your issue.
|
||||||
|
|
||||||
|
The team will review the labels and make any necessary changes.
|
||||||
|
labels:
|
||||||
|
'Announcement':
|
||||||
|
- '\s*?\[[Aa]nnouncement\]\s*?'
|
||||||
|
'Breaking change (with fallback)':
|
||||||
|
- '\s*?[bB]reaking [cC]hange [wW]ith [fF]allback\s*?'
|
||||||
|
'Breaking change (without fallback)':
|
||||||
|
- '\s*?[bB]reaking [cC]hange [wW]ithout [fF]allback\s*?'
|
||||||
|
'Client: Ada':
|
||||||
|
- '\s*?\[ada\]\s*?'
|
||||||
|
- '\s*?-[gl] ada(?!-)\b'
|
||||||
|
'Client: Android':
|
||||||
|
- '\s*?\[android\]\s*?'
|
||||||
|
- '\s*?-[gl] android(?!-)\b'
|
||||||
|
'Client: Apex':
|
||||||
|
- '\s*?\[apex\]\s*?'
|
||||||
|
- '\s*?-[gl] apex(?!-)\b'
|
||||||
|
'Client: Bash':
|
||||||
|
- '\s*?\[bash\]\s*?'
|
||||||
|
- '\s*?-[gl] bash(?!-)\b'
|
||||||
|
'Client: C':
|
||||||
|
- '\s*?\[[cC]\]\s*?'
|
||||||
|
- '\s*?-[gl] c(?!-)\b'
|
||||||
|
# 'Client: Ceylon':
|
||||||
|
'Client: C++':
|
||||||
|
- '\s*?\[cpp(-.*)?-client\]\s*?'
|
||||||
|
- '\s*?-[gl] cpp(-.*)?-client\s*?'
|
||||||
|
- '\s*?-[gl] cpp-restsdk(?!-)\b'
|
||||||
|
- '\s*?-[gl] cpp-tizen(?!-)\b'
|
||||||
|
'Client: C-Sharp':
|
||||||
|
- '\s*?-[gl] csharp(?!-)\b'
|
||||||
|
- '\s*?[cC]-[sS]harp [cC]lient\s*?'
|
||||||
|
- '\s*?-[gl] csharp-dotnet2\s*?'
|
||||||
|
- '\s*?-[gl] csharp-refactor?\s*?'
|
||||||
|
- '\s*?\[[Cc]#\]'
|
||||||
|
- '\s*?\[csharp\]\s*?'
|
||||||
|
'Client: Clojure':
|
||||||
|
- '\s*?\[clojure\]\s*?'
|
||||||
|
- '\s*?-[gl] clojure(?!-)\b'
|
||||||
|
# 'Client: Crystal':
|
||||||
|
'Client: Dart':
|
||||||
|
- '\s*?\[dart\]\s*?'
|
||||||
|
- '\s*?-[gl] dart(?!-)\b'
|
||||||
|
'Client: Dukescript':
|
||||||
|
- '\s*?\[dukescript\]\s*?'
|
||||||
|
- '\s*?-g dukescript\s*?'
|
||||||
|
'Client: Eiffel':
|
||||||
|
- '\s*?\[eiffel\]\s*?'
|
||||||
|
- '\s*?-[gl] eiffel(?!-)\b'
|
||||||
|
'Client: Elixir':
|
||||||
|
- '\s*?\[elixir\]\s*?'
|
||||||
|
- '\s*?-[gl] elixir(?!-)\b'
|
||||||
|
'Client: Elm':
|
||||||
|
- '\s*?\[elm\]\s*?'
|
||||||
|
- '\s*?-[gl] elm(?!-)\b'
|
||||||
|
'Client: Erlang':
|
||||||
|
- '\s*?\[erlang(-.*)?-client\]\s*?'
|
||||||
|
- '\s*?-[gl] erlang(-.*)?-client\s*?'
|
||||||
|
- '\s*?\[erlang-proper\]\s*?'
|
||||||
|
- '\s*?-[gl] erlang-proper\s*?'
|
||||||
|
'Client: Flash/ActionScript':
|
||||||
|
- '\s*?\[flash\]\s*?'
|
||||||
|
- '\s*?-[gl] flash(?!-)\b'
|
||||||
|
'Client: Go':
|
||||||
|
- '\s*?\[go\]\s*?'
|
||||||
|
- '\s*?-[gl] go(?!-)\b'
|
||||||
|
'Client: Groovy':
|
||||||
|
- '\s*?\[groovy\]\s*?'
|
||||||
|
- '\s*?-[gl] groovy(?!-)\b'
|
||||||
|
'Client: HTML':
|
||||||
|
- '\s*?\[html[2]?\]\s*?'
|
||||||
|
- '\s*?-[gl] html[2]?\s*?'
|
||||||
|
'Client: Haskell':
|
||||||
|
- '\s*?\[haskell(-.*)?-client\]\s*?'
|
||||||
|
- '\s*?-[gl] haskell(-.*)?-client\s*?'
|
||||||
|
'Client: JMeter':
|
||||||
|
- '\s*?\[jmeter\]\s*?'
|
||||||
|
- '\s*?-[gl] jmeter\s*?'
|
||||||
|
'Client: Java':
|
||||||
|
- '\s*?\[java\]\s*?'
|
||||||
|
- '\s*?-[gl] java(?!-)\b'
|
||||||
|
'Client: JavaScript/Node.js':
|
||||||
|
- '\s*?\[javascript\]\s*?'
|
||||||
|
- '\s*?-[gl] javascript\s*?'
|
||||||
|
- '\s*?-[gl] javascript-(\S)*\s*?'
|
||||||
|
# 'Client: Julia': # NOTE: Not yet implemented
|
||||||
|
'Client: Kotlin':
|
||||||
|
- '\s*?\[kotlin\]\s*?'
|
||||||
|
- '\s*?-[gl] kotlin(?!-)\b'
|
||||||
|
'Client: Lisp':
|
||||||
|
- '\s*?\[lisp\]\s*?'
|
||||||
|
- '\s*?-[gl] lisp(?!-)\b'
|
||||||
|
'Client: Lua':
|
||||||
|
- '\s*?\[lua\]\s*?'
|
||||||
|
- '\s*?-[gl] lua(?!-)\b'
|
||||||
|
'Client: Objc':
|
||||||
|
- '\s*?\[objc\]\s*?'
|
||||||
|
- '\s*?-[gl] objc\s*?'
|
||||||
|
# 'Client: OCaml':
|
||||||
|
'Client: Perl':
|
||||||
|
- '\s*?\[perl\]\s*?'
|
||||||
|
- '\s*?-[gl] perl(?!-)\b'
|
||||||
|
# 'Client: PHP':
|
||||||
|
'Client: PowerShell':
|
||||||
|
- '\s*?\[powershell\]\s*?'
|
||||||
|
- '\s*?-[gl] powershell\s*?'
|
||||||
|
'Client: Python':
|
||||||
|
- '\s*?\[python\]\s*?'
|
||||||
|
- '\s*?-[gl] python(?!-)\b'
|
||||||
|
'Client: QT':
|
||||||
|
- '\s*?\[cpp-qt5-client\]\s*?'
|
||||||
|
- '\s*?-[gl] cpp-qt5-client\s*?'
|
||||||
|
'Client: R':
|
||||||
|
- '\s*?\[[rR]\]\s*?'
|
||||||
|
- '\s*?-[gl] r(?!-)\b'
|
||||||
|
'Client: Reason ML':
|
||||||
|
- '\s*?\[reasonml\]\s*?'
|
||||||
|
- '\s*?-[g] reasonml\s*?'
|
||||||
|
'Client: Retrofit':
|
||||||
|
- '\s*?retrofit.*?\s*?'
|
||||||
|
'Client: Ruby':
|
||||||
|
- '\s*?\[ruby\]\s*?'
|
||||||
|
- '\s*?-[gl] ruby(?!-)\b'
|
||||||
|
'Client: Rust':
|
||||||
|
- '\s*?\[rust\]\s*?'
|
||||||
|
- '\s*?-[gl] rust(?!-)\b'
|
||||||
|
'Client: Scala':
|
||||||
|
- '\s*?\[scalaz\]\s*?'
|
||||||
|
- '\s*?-[gl] scalaz\s*?'
|
||||||
|
- '\s*?\[scala-(?!finch)[a-z]+\]\b'
|
||||||
|
- '\s*?-[gl] scala-(?!finch)[a-z]+?(?!-)\b'
|
||||||
|
'Client: Swift':
|
||||||
|
- '\s*?\[swift[34]+\]\s*?'
|
||||||
|
- '\s*?-[gl] swift[34]+\s*?'
|
||||||
|
- '\s*?-[gl] swift2-deprecated\s*?'
|
||||||
|
'Client: TypeScript':
|
||||||
|
- '\s*?\[typescript-[\-a-z]+\]\s*?'
|
||||||
|
- '\s*?-[gl] typescript-[\-a-z]+\s*?'
|
||||||
|
# 'Client: VB/VB.net': # NOTE: Not yet implemented
|
||||||
|
# 'Client: Visual Basic': # TODO: REMOVE UNUSED LABEL
|
||||||
|
'Config: Apache':
|
||||||
|
- '\s*?\[apache2\]\s*?'
|
||||||
|
- '\s*?-[gl] apache2\s*?'
|
||||||
|
'Docker':
|
||||||
|
- '\s*?\[docker\]\s*?'
|
||||||
|
'Documentation: Cwiki':
|
||||||
|
- '\s*?\[cwiki\]\s*?'
|
||||||
|
- '\s*?-[gl] cwiki\s*?'
|
||||||
|
'Documentation: Dynamic HTML':
|
||||||
|
- '\s*?\[dynamic-html\]\s*?'
|
||||||
|
- '\s*?-[gl] dynamic-html\s*?'
|
||||||
|
'Enhancement: CI/Test':
|
||||||
|
- '\s*?\[ci\]\s*?'
|
||||||
|
'Enhancement: Code format':
|
||||||
|
- '\s*?\[format(ting)?\]\s*?'
|
||||||
|
# 'Enhancement: Compatibility':
|
||||||
|
'Enhancement: Feature':
|
||||||
|
- '\s*?\[feat(ure)?s*?'
|
||||||
|
'Enhancement: General':
|
||||||
|
- '\s*?\[general\]\s*?'
|
||||||
|
- '\s*?\[core\]\s*?'
|
||||||
|
# 'Enhancement: New generator':
|
||||||
|
'Enhancement: Performance':
|
||||||
|
- '\s*?\[perf\]\s*?'
|
||||||
|
# 'Feature List: API clients':
|
||||||
|
# 'Feature List: API documentations':
|
||||||
|
# 'Feature List: API servers':
|
||||||
|
# 'Feature: Authentication':
|
||||||
|
# 'Feature: Composition / Inheritance':
|
||||||
|
# 'Feature: Documentation':
|
||||||
|
# 'Feature: Enum':
|
||||||
|
# 'Feature: Generator':
|
||||||
|
'Feature: OAS 3.0 spec support':
|
||||||
|
- '\s*?\[oas3[\.0]?\]\s*?'
|
||||||
|
# 'General: Awaiting feedback':
|
||||||
|
'General: Discussion':
|
||||||
|
- '\s*?\[discussion\]\s*?'
|
||||||
|
'General: Question':
|
||||||
|
- '\s*?\[question\]\s*?'
|
||||||
|
'General: Suggestion':
|
||||||
|
- '\s*?\[suggestion\]\s*?'
|
||||||
|
'General: Support':
|
||||||
|
- '\s*?\[support\]\s*?'
|
||||||
|
'Issue: Bug':
|
||||||
|
- '\s*?\[bug(s)?\]\s*?'
|
||||||
|
- '\s*?\[fix(es)?\]\s*?'
|
||||||
|
# 'Issue: Invalid spec':
|
||||||
|
# 'Issue: Migration':
|
||||||
|
# 'Issue: Non-operational':
|
||||||
|
# 'Issue: Platform':
|
||||||
|
# 'Issue: Regression':
|
||||||
|
'Issue: Security':
|
||||||
|
- '\s*?\[security\]\s*?'
|
||||||
|
# 'Issue: Unable to reproduce':
|
||||||
|
# 'Issue: Undo changes':
|
||||||
|
# 'Issue: Usage/Installation':
|
||||||
|
# 'Issue: Workaround available':
|
||||||
|
'OpenAPI Generator CLI':
|
||||||
|
- '\s*?\[cli\]\s*?'
|
||||||
|
'OpenAPI Generator Gradle Plugin':
|
||||||
|
- '\s*?\[gradle\]\s*?'
|
||||||
|
'OpenAPI Generator Maven Plugin':
|
||||||
|
- '\s*?\[maven\]\s*?'
|
||||||
|
'OpenAPI Generator Online':
|
||||||
|
- '\s*?\[online\]\s*?'
|
||||||
|
'Schema: MySQL':
|
||||||
|
- '\s*?\[mysql\]\s*?'
|
||||||
|
- '\s*?-[gl] mysql\s*?'
|
||||||
|
'Schema: GraphQL':
|
||||||
|
- '\s*?\[graphql-schema\]\s*?'
|
||||||
|
- '\s*?-[gl] graphql-schema\s*?'
|
||||||
|
'Server: Ada':
|
||||||
|
- '\s*?\[ada(-.*)?-server\]\s*?'
|
||||||
|
- '\s*?-[gl] ada(-.*)?-server\s*?'
|
||||||
|
'Server: C++':
|
||||||
|
- '\s*?\[cpp(-.*)?-server\]\s*?'
|
||||||
|
- '\s*?-[gl] cpp(-.*)?-server\s*?'
|
||||||
|
'Server: C-Sharp':
|
||||||
|
- '\s*?\[aspnetcore\]\s*?'
|
||||||
|
- '\s*?-[gl] aspnetcore\s*?'
|
||||||
|
- '\s*?\[csharp-nancyfx\]\s*?'
|
||||||
|
- '\s*?-[gl] csharp-nancyfx\s*?'
|
||||||
|
# 'Server: Ceylon': # TODO: REMOVE UNUSED LABEL
|
||||||
|
'Server: Eiffel':
|
||||||
|
- '\s*?\[eiffel(-.*)?-server\]\s*?'
|
||||||
|
- '\s*?-[gl] eiffel(-.*)?-server\s*?'
|
||||||
|
'Server: Elixir':
|
||||||
|
- '\s*?\[elixir(-.*)?-server\]\s*?'
|
||||||
|
- '\s*?-[gl] elixir(-.*)?-server\s*?'
|
||||||
|
'Server: Erlang':
|
||||||
|
- '\s*?\[erlang-server\]\s*?'
|
||||||
|
- '\s*?-[gl] erlang-server\s*?'
|
||||||
|
'Server: Go':
|
||||||
|
- '\s*?\[go(-.*)?-server\]\s*?'
|
||||||
|
- '\s*?-[gl] go(-.*)?-server\s*?'
|
||||||
|
'Server: GraphQL':
|
||||||
|
- '\s*?\[graphql(-.*)?-server\]\s*?'
|
||||||
|
- '\s*?-[gl] graphql(-.*)?-server\s*?'
|
||||||
|
'Server: Haskell':
|
||||||
|
- '\s*?\[haskell]\s*?'
|
||||||
|
- '\s*?-[gl] haskell(?!-)\b'
|
||||||
|
'Server: Java':
|
||||||
|
- '\s*?\[java-.*?\]\s*?'
|
||||||
|
- '\s*?-[gl] java-.*?\s*?'
|
||||||
|
- '\s*?-[gl] jaxrx-.*?\s*?'
|
||||||
|
'Server: Kotlin':
|
||||||
|
- '\s*?\[ktor]\s*?'
|
||||||
|
- '\s*?\[kotlin-spring]\s*?'
|
||||||
|
- '\s*?\[kotlin(-.*)?-server\]\s*?'
|
||||||
|
- '\s*?-[gl] kotlin(-.*)?-server\s*?'
|
||||||
|
- '\s*?-[gl] kotlin-spring\s*?'
|
||||||
|
'Server: Nodejs':
|
||||||
|
- '\s*?\[nodejs(-.*)?-server\]\s*?'
|
||||||
|
- '\s*?-[gl] nodejs(-.*)?-server\s*?'
|
||||||
|
'Server: PHP':
|
||||||
|
- '\s*?\[php-.*?\]\s*?'
|
||||||
|
- '\s*?-[gl] php-.*?\s*?'
|
||||||
|
'Server: Perl':
|
||||||
|
- '\s*?\[perl(-.*)?-server\]\s*?'
|
||||||
|
- '\s*?-g perl(-.*)?-server\s*?'
|
||||||
|
'Server: Python':
|
||||||
|
- '\s*?\[python-.*?\]\s*?'
|
||||||
|
- '\s*?-[gl] python-.*?\s*?'
|
||||||
|
'Server: Ruby':
|
||||||
|
- '\s*?\[ruby-.*?\]\s*?'
|
||||||
|
- '\s*?-[gl] ruby-.*?\s*?'
|
||||||
|
'Server: Rust':
|
||||||
|
- '\s*?\[rust(-.*)?-server\]\s*?'
|
||||||
|
- '\s*?-[gl] rust(-.*)?-server\s*?'
|
||||||
|
'Server: Scala':
|
||||||
|
- '\s*?\[scala(-.*)?-server\]\s*?'
|
||||||
|
- '\s*?-[gl] scala(-.*)?-server\s*?'
|
||||||
|
- '\s*?\[scalatra\]\s*?'
|
||||||
|
- '\s*?-[gl] scalatra\s*?'
|
||||||
|
- '\s*?\[scala-finch\]\s*?'
|
||||||
|
- '\s*?-[gl] scala-finch\s*?'
|
||||||
|
'Server: Spring':
|
||||||
|
- '\s*?\[spring\]\s*?'
|
||||||
|
- '\s*?-[g] spring\s*?'
|
||||||
|
# 'Swagger-Parser':
|
||||||
|
'WIP':
|
||||||
|
- '\s*?\[wip\]\s*?'
|
||||||
|
- '\s*?\[WIP\]\s*?'
|
||||||
|
- '\bWIP:.*?'
|
||||||
|
'help wanted':
|
||||||
|
- '\s*?\[help wanted\]\s*?'
|
||||||
7
.gitignore
vendored
7
.gitignore
vendored
@@ -27,6 +27,7 @@ packages/
|
|||||||
.packages
|
.packages
|
||||||
.vagrant/
|
.vagrant/
|
||||||
.vscode/
|
.vscode/
|
||||||
|
**/.vs
|
||||||
|
|
||||||
.settings
|
.settings
|
||||||
|
|
||||||
@@ -128,7 +129,6 @@ samples/client/petstore/swift3/**/SwaggerClientTests/Podfile.lock
|
|||||||
# C#
|
# C#
|
||||||
*.csproj.user
|
*.csproj.user
|
||||||
samples/client/petstore/csharp/SwaggerClient/IO.Swagger.userprefs
|
samples/client/petstore/csharp/SwaggerClient/IO.Swagger.userprefs
|
||||||
samples/client/petstore/csharp/SwaggerClientTest/.vs
|
|
||||||
samples/client/petstore/csharp/SwaggerClientTest/obj
|
samples/client/petstore/csharp/SwaggerClientTest/obj
|
||||||
samples/client/petstore/csharp/SwaggerClientTest/bin
|
samples/client/petstore/csharp/SwaggerClientTest/bin
|
||||||
samples/client/petstore/csharp/SwaggerClientTest/packages
|
samples/client/petstore/csharp/SwaggerClientTest/packages
|
||||||
@@ -146,6 +146,8 @@ samples/client/petstore/csharp/SwaggerClient/bin/Debug/
|
|||||||
samples/client/petstore/csharp/SwaggerClient/packages
|
samples/client/petstore/csharp/SwaggerClient/packages
|
||||||
samples/client/petstore/csharp/SwaggerClient/TestResult.xml
|
samples/client/petstore/csharp/SwaggerClient/TestResult.xml
|
||||||
samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/IO.Swagger.userprefs
|
samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/IO.Swagger.userprefs
|
||||||
|
samples/client/petstore/csharp-refactor/OpenAPIClient/TestResult.xml
|
||||||
|
samples/client/petstore/csharp-refactor/OpenAPIClient/nuget.exe
|
||||||
|
|
||||||
# Python
|
# Python
|
||||||
*.pyc
|
*.pyc
|
||||||
@@ -178,6 +180,7 @@ samples/client/petstore/kotlin/src/main/kotlin/test/
|
|||||||
samples/client/petstore/kotlin-threetenbp/build
|
samples/client/petstore/kotlin-threetenbp/build
|
||||||
samples/client/petstore/kotlin-string/build
|
samples/client/petstore/kotlin-string/build
|
||||||
samples/server/petstore/kotlin-server/ktor/build
|
samples/server/petstore/kotlin-server/ktor/build
|
||||||
|
samples/openapi3/client/petstore/kotlin/build
|
||||||
\?
|
\?
|
||||||
|
|
||||||
# haskell
|
# haskell
|
||||||
@@ -190,6 +193,8 @@ samples/client/petstore/haskell-http-client/docs/quick-jump.css
|
|||||||
|
|
||||||
# R
|
# R
|
||||||
.Rproj.user
|
.Rproj.user
|
||||||
|
samples/client/petstore/R/**/petstore.Rcheck/
|
||||||
|
samples/client/petstore/R/**/*.tar.gz
|
||||||
|
|
||||||
# elixir
|
# elixir
|
||||||
samples/client/petstore/elixir/_build/
|
samples/client/petstore/elixir/_build/
|
||||||
|
|||||||
27
.travis.yml
27
.travis.yml
@@ -3,7 +3,6 @@ language: java
|
|||||||
jdk:
|
jdk:
|
||||||
- openjdk8
|
- openjdk8
|
||||||
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.m2
|
- $HOME/.m2
|
||||||
@@ -29,11 +28,11 @@ cache:
|
|||||||
- $HOME/samples/server/petstore/rust-server/target
|
- $HOME/samples/server/petstore/rust-server/target
|
||||||
- $HOME/perl5
|
- $HOME/perl5
|
||||||
- $HOME/.cargo
|
- $HOME/.cargo
|
||||||
- $HOME/.stack
|
|
||||||
- $HOME/.pub-cache
|
- $HOME/.pub-cache
|
||||||
- $HOME/samples/server/petstore/cpp-pistache/pistache
|
- $HOME/samples/server/petstore/cpp-pistache/pistache
|
||||||
- $HOME/.npm
|
- $HOME/.npm
|
||||||
- $HOME/.rvm/gems/ruby-2.4.1
|
- $HOME/.rvm/gems/ruby-2.4.1
|
||||||
|
- $HOME/website/node_modules/
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
@@ -50,10 +49,6 @@ addons:
|
|||||||
- petstore.swagger.io
|
- petstore.swagger.io
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
# install haskell
|
|
||||||
- curl -sSL https://get.haskellstack.org/ | sh
|
|
||||||
- stack upgrade
|
|
||||||
- stack --version
|
|
||||||
# install rust
|
# install rust
|
||||||
- curl https://sh.rustup.rs -sSf | sh -s -- -y -v
|
- curl https://sh.rustup.rs -sSf | sh -s -- -y -v
|
||||||
# required when sudo: required for the Ruby petstore tests
|
# required when sudo: required for the Ruby petstore tests
|
||||||
@@ -69,10 +64,10 @@ before_install:
|
|||||||
- docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
|
- docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
|
||||||
- docker ps -a
|
- docker ps -a
|
||||||
# Add bats test framework and cURL for Bash script integration tests
|
# Add bats test framework and cURL for Bash script integration tests
|
||||||
- sudo add-apt-repository ppa:duggan/bats --yes
|
#- sudo add-apt-repository ppa:duggan/bats --yes
|
||||||
- sudo apt-get update -qq
|
#- sudo apt-get update -qq
|
||||||
- sudo apt-get install -qq bats
|
#- sudo apt-get install -qq bats
|
||||||
- sudo apt-get install -qq curl
|
#- sudo apt-get install -qq curl
|
||||||
# install dart
|
# install dart
|
||||||
#- sudo apt-get update
|
#- sudo apt-get update
|
||||||
#- sudo apt-get install apt-transport-https
|
#- sudo apt-get install apt-transport-https
|
||||||
@@ -102,6 +97,7 @@ before_install:
|
|||||||
gpg --keyserver keyserver.ubuntu.com --recv-key $SIGNING_KEY ;
|
gpg --keyserver keyserver.ubuntu.com --recv-key $SIGNING_KEY ;
|
||||||
gpg --check-trustdb ;
|
gpg --check-trustdb ;
|
||||||
fi;
|
fi;
|
||||||
|
- pushd .; cd website; npm install; popd
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# Add Godeps dependencies to GOPATH and PATH
|
# Add Godeps dependencies to GOPATH and PATH
|
||||||
@@ -143,6 +139,8 @@ after_success:
|
|||||||
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
||||||
pushd .;
|
pushd .;
|
||||||
cd modules/openapi-generator-gradle-plugin;
|
cd modules/openapi-generator-gradle-plugin;
|
||||||
|
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/sec.gpg" publishPlugins -Dgradle.publish.key=$GRADLE_PUBLISH_KEY -Dgradle.publish.secret=$GRADLE_PUBLISH_SECRET --no-daemon;
|
||||||
|
echo "Finished ./gradlew publishPlugins (plugin portal)";
|
||||||
./gradlew -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}" uploadArchives --no-daemon;
|
./gradlew -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}" uploadArchives --no-daemon;
|
||||||
echo "Finished ./gradlew uploadArchives";
|
echo "Finished ./gradlew uploadArchives";
|
||||||
popd;
|
popd;
|
||||||
@@ -152,6 +150,15 @@ after_success:
|
|||||||
- if [ $DOCKER_HUB_USERNAME ]; then echo "$DOCKER_HUB_PASSWORD" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin && docker build -t $DOCKER_GENERATOR_IMAGE_NAME ./modules/openapi-generator-online && if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_GENERATOR_IMAGE_NAME:latest $DOCKER_GENERATOR_IMAGE_NAME:$TRAVIS_TAG; fi && if [ ! -z "$TRAVIS_TAG" ] || [ "$TRAVIS_BRANCH" = "master" ]; then docker push $DOCKER_GENERATOR_IMAGE_NAME && echo "Pushed to $DOCKER_GENERATOR_IMAGE_NAME"; fi; fi
|
- if [ $DOCKER_HUB_USERNAME ]; then echo "$DOCKER_HUB_PASSWORD" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin && docker build -t $DOCKER_GENERATOR_IMAGE_NAME ./modules/openapi-generator-online && if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_GENERATOR_IMAGE_NAME:latest $DOCKER_GENERATOR_IMAGE_NAME:$TRAVIS_TAG; fi && if [ ! -z "$TRAVIS_TAG" ] || [ "$TRAVIS_BRANCH" = "master" ]; then docker push $DOCKER_GENERATOR_IMAGE_NAME && echo "Pushed to $DOCKER_GENERATOR_IMAGE_NAME"; fi; fi
|
||||||
## docker: build cli image and push to Docker Hub
|
## docker: build cli image and push to Docker Hub
|
||||||
- if [ $DOCKER_HUB_USERNAME ]; then echo "$DOCKER_HUB_PASSWORD" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin && cp docker-entrypoint.sh ./modules/openapi-generator-cli && docker build -t $DOCKER_CODEGEN_CLI_IMAGE_NAME ./modules/openapi-generator-cli && if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_CODEGEN_CLI_IMAGE_NAME:latest $DOCKER_CODEGEN_CLI_IMAGE_NAME:$TRAVIS_TAG; fi && if [ ! -z "$TRAVIS_TAG" ] || [ "$TRAVIS_BRANCH" = "master" ]; then docker push $DOCKER_CODEGEN_CLI_IMAGE_NAME && echo "Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME"; fi; fi
|
- if [ $DOCKER_HUB_USERNAME ]; then echo "$DOCKER_HUB_PASSWORD" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin && cp docker-entrypoint.sh ./modules/openapi-generator-cli && docker build -t $DOCKER_CODEGEN_CLI_IMAGE_NAME ./modules/openapi-generator-cli && if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_CODEGEN_CLI_IMAGE_NAME:latest $DOCKER_CODEGEN_CLI_IMAGE_NAME:$TRAVIS_TAG; fi && if [ ! -z "$TRAVIS_TAG" ] || [ "$TRAVIS_BRANCH" = "master" ]; then docker push $DOCKER_CODEGEN_CLI_IMAGE_NAME && echo "Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME"; fi; fi
|
||||||
|
## publish latest website, variables below are secure environment variables which are unavailable to PRs from forks.
|
||||||
|
- if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||||
|
cd website;
|
||||||
|
git config --global user.name "${GH_NAME}";
|
||||||
|
git config --global user.email "${GH_EMAIL}";
|
||||||
|
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
|
||||||
|
npm install;
|
||||||
|
GIT_USER="${GH_NAME}" npm run-script publish-gh-pages;
|
||||||
|
fi;
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- DOCKER_GENERATOR_IMAGE_NAME=openapitools/openapi-generator-online DOCKER_CODEGEN_CLI_IMAGE_NAME=openapitools/openapi-generator-cli NODE_ENV=test CC=gcc-5 CXX=g++-5
|
- DOCKER_GENERATOR_IMAGE_NAME=openapitools/openapi-generator-online DOCKER_CODEGEN_CLI_IMAGE_NAME=openapitools/openapi-generator-cli NODE_ENV=test CC=gcc-5 CXX=g++-5
|
||||||
|
|||||||
@@ -5,17 +5,39 @@
|
|||||||
|
|
||||||
NODE_INDEX=${CIRCLE_NODE_INDEX:-0}
|
NODE_INDEX=${CIRCLE_NODE_INDEX:-0}
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ "$NODE_INDEX" = "1" ]; then
|
if [ "$NODE_INDEX" = "1" ]; then
|
||||||
echo "Running node $NODE_INDEX to test 'samples.circleci' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci' defined in pom.xml ..."
|
||||||
#cp CI/pom.xml.circleci pom.xml
|
#cp CI/pom.xml.circleci pom.xml
|
||||||
java -version
|
java -version
|
||||||
mvn --quiet verify -Psamples.circleci
|
mvn --quiet verify -Psamples.circleci
|
||||||
elif [ "$NODE_INDEX" = "2" ]; then
|
elif [ "$NODE_INDEX" = "2" ]; then
|
||||||
echo "Running node $NODE_INDEX to test ensure-up-to-date"
|
# run ensure-up-to-date sample script on SNAPSHOT version only
|
||||||
java -version
|
project_version=`mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout`
|
||||||
#export GO_POST_PROCESS_FILE="/usr/local/bin/gofmt -w"
|
if [[ $project_version == *"-SNAPSHOT" ]]; then
|
||||||
# not formatting the code as different go versions may format the code a bit different
|
echo "Running node $NODE_INDEX to test ensure-up-to-date"
|
||||||
./bin/utils/ensure-up-to-date
|
java -version
|
||||||
|
./bin/utils/ensure-up-to-date
|
||||||
|
fi
|
||||||
|
#elif [ "$NODE_INDEX" = "3" ]; then
|
||||||
|
echo "Running node $NODE_INDEX to test haskell"
|
||||||
|
# install haskell
|
||||||
|
curl -sSL https://get.haskellstack.org/ | sh
|
||||||
|
stack upgrade
|
||||||
|
stack --version
|
||||||
|
# install r
|
||||||
|
sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list'
|
||||||
|
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
|
||||||
|
gpg -a --export E084DAB9 | sudo apt-key add -
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install r-base
|
||||||
|
R --version
|
||||||
|
# install curl
|
||||||
|
sudo apt-get -y build-dep libcurl4-gnutls-dev
|
||||||
|
sudo apt-get -y install libcurl4-gnutls-dev
|
||||||
|
# run integration tests
|
||||||
|
mvn --quiet verify -Psamples.misc
|
||||||
else
|
else
|
||||||
echo "Running node $NODE_INDEX to test 'samples.circleci.jdk7' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci.jdk7' defined in pom.xml ..."
|
||||||
sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
|
sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
OpenAPI Petstore
|
||||||
|
|
||||||
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
|
||||||
|
-->
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||||
|
|
||||||
|
<IsPackable>false</IsPackable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\Org.OpenAPITools\Org.OpenAPITools.csproj">
|
||||||
|
<Name>Org.OpenAPITools</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Include="linux-logo.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="CompareNETObjects" Version="4.57.0" />
|
||||||
|
<PackageReference Include="JsonSubTypes" Version="1.5.2" />
|
||||||
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
|
||||||
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
|
||||||
|
<PackageReference Include="xunit" Version="2.4.1" />
|
||||||
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
||||||
|
<PackageReference Include="RestSharp" Version="106.6.7" />
|
||||||
|
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
OpenAPI Petstore
|
||||||
|
|
||||||
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
|
||||||
|
-->
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||||
|
|
||||||
|
<IsPackable>false</IsPackable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\Org.OpenAPITools\Org.OpenAPITools.csproj">
|
||||||
|
<Name>Org.OpenAPITools</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Include="linux-logo.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="CompareNETObjects" Version="4.57.0" />
|
||||||
|
<PackageReference Include="JsonSubTypes" Version="1.5.2" />
|
||||||
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
|
||||||
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
|
||||||
|
<PackageReference Include="xunit" Version="2.4.1" />
|
||||||
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
||||||
|
<PackageReference Include="RestSharp" Version="106.6.7" />
|
||||||
|
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
package org.openapitools.client;
|
package org.openapitools.client;
|
||||||
|
|
||||||
|
import okhttp3.OkHttpClient;
|
||||||
import org.openapitools.client.auth.*;
|
import org.openapitools.client.auth.*;
|
||||||
|
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
@@ -157,11 +158,11 @@ public class ApiClientTest {
|
|||||||
public void testGetAndSetConnectTimeout() {
|
public void testGetAndSetConnectTimeout() {
|
||||||
// connect timeout defaults to 10 seconds
|
// connect timeout defaults to 10 seconds
|
||||||
assertEquals(10000, apiClient.getConnectTimeout());
|
assertEquals(10000, apiClient.getConnectTimeout());
|
||||||
assertEquals(10000, apiClient.getHttpClient().getConnectTimeout());
|
assertEquals(10000, apiClient.getHttpClient().connectTimeoutMillis());
|
||||||
|
|
||||||
apiClient.setConnectTimeout(0);
|
apiClient.setConnectTimeout(0);
|
||||||
assertEquals(0, apiClient.getConnectTimeout());
|
assertEquals(0, apiClient.getConnectTimeout());
|
||||||
assertEquals(0, apiClient.getHttpClient().getConnectTimeout());
|
assertEquals(0, apiClient.getHttpClient().connectTimeoutMillis());
|
||||||
|
|
||||||
apiClient.setConnectTimeout(10000);
|
apiClient.setConnectTimeout(10000);
|
||||||
}
|
}
|
||||||
@@ -170,11 +171,11 @@ public class ApiClientTest {
|
|||||||
public void testGetAndSetReadTimeout() {
|
public void testGetAndSetReadTimeout() {
|
||||||
// read timeout defaults to 10 seconds
|
// read timeout defaults to 10 seconds
|
||||||
assertEquals(10000, apiClient.getReadTimeout());
|
assertEquals(10000, apiClient.getReadTimeout());
|
||||||
assertEquals(10000, apiClient.getHttpClient().getReadTimeout());
|
assertEquals(10000, apiClient.getHttpClient().readTimeoutMillis());
|
||||||
|
|
||||||
apiClient.setReadTimeout(0);
|
apiClient.setReadTimeout(0);
|
||||||
assertEquals(0, apiClient.getReadTimeout());
|
assertEquals(0, apiClient.getReadTimeout());
|
||||||
assertEquals(0, apiClient.getHttpClient().getReadTimeout());
|
assertEquals(0, apiClient.getHttpClient().readTimeoutMillis());
|
||||||
|
|
||||||
apiClient.setReadTimeout(10000);
|
apiClient.setReadTimeout(10000);
|
||||||
}
|
}
|
||||||
@@ -183,11 +184,11 @@ public class ApiClientTest {
|
|||||||
public void testGetAndSetWriteTimeout() {
|
public void testGetAndSetWriteTimeout() {
|
||||||
// write timeout defaults to 10 seconds
|
// write timeout defaults to 10 seconds
|
||||||
assertEquals(10000, apiClient.getWriteTimeout());
|
assertEquals(10000, apiClient.getWriteTimeout());
|
||||||
assertEquals(10000, apiClient.getHttpClient().getWriteTimeout());
|
assertEquals(10000, apiClient.getHttpClient().writeTimeoutMillis());
|
||||||
|
|
||||||
apiClient.setWriteTimeout(0);
|
apiClient.setWriteTimeout(0);
|
||||||
assertEquals(0, apiClient.getWriteTimeout());
|
assertEquals(0, apiClient.getWriteTimeout());
|
||||||
assertEquals(0, apiClient.getHttpClient().getWriteTimeout());
|
assertEquals(0, apiClient.getHttpClient().writeTimeoutMillis());
|
||||||
|
|
||||||
apiClient.setWriteTimeout(10000);
|
apiClient.setWriteTimeout(10000);
|
||||||
}
|
}
|
||||||
@@ -327,4 +328,25 @@ public class ApiClientTest {
|
|||||||
assertEquals("sun.gif", apiClient.sanitizeFilename("c:\\var\\tmp\\sun.gif"));
|
assertEquals("sun.gif", apiClient.sanitizeFilename("c:\\var\\tmp\\sun.gif"));
|
||||||
assertEquals("sun.gif", apiClient.sanitizeFilename(".\\sun.gif"));
|
assertEquals("sun.gif", apiClient.sanitizeFilename(".\\sun.gif"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testInterceptorCleanupWithNewClient() {
|
||||||
|
OkHttpClient oldClient = apiClient.getHttpClient();
|
||||||
|
assertEquals(1, oldClient.networkInterceptors().size());
|
||||||
|
|
||||||
|
OkHttpClient newClient = new OkHttpClient();
|
||||||
|
apiClient.setHttpClient(newClient);
|
||||||
|
assertEquals(1, apiClient.getHttpClient().networkInterceptors().size());
|
||||||
|
apiClient.setHttpClient(newClient);
|
||||||
|
assertEquals(1, apiClient.getHttpClient().networkInterceptors().size());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testInterceptorCleanupWithSameClient() {
|
||||||
|
OkHttpClient oldClient = apiClient.getHttpClient();
|
||||||
|
assertEquals(1, oldClient.networkInterceptors().size());
|
||||||
|
apiClient.setHttpClient(oldClient);
|
||||||
|
assertEquals(1, apiClient.getHttpClient().networkInterceptors().size());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,533 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.api;
|
||||||
|
|
||||||
|
import org.openapitools.client.ApiException;
|
||||||
|
import org.openapitools.client.model.Pet;
|
||||||
|
import org.openapitools.client.auth.*;
|
||||||
|
import org.openapitools.client.model.*;
|
||||||
|
import org.openapitools.client.*;
|
||||||
|
|
||||||
|
import java.lang.reflect.Type;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||||
|
import java.util.concurrent.CountDownLatch;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.io.BufferedWriter;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileWriter;
|
||||||
|
|
||||||
|
import org.junit.*;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* API tests for PetApi
|
||||||
|
*/
|
||||||
|
public class PetApiTest {
|
||||||
|
|
||||||
|
private PetApi api = new PetApi();
|
||||||
|
|
||||||
|
@Before
|
||||||
|
public void setup() {
|
||||||
|
// setup authentication
|
||||||
|
ApiKeyAuth apiKeyAuth = (ApiKeyAuth) api.getApiClient().getAuthentication("api_key");
|
||||||
|
apiKeyAuth.setApiKey("special-key");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testApiClient() {
|
||||||
|
// the default api client is used
|
||||||
|
assertEquals(Configuration.getDefaultApiClient(), api.getApiClient());
|
||||||
|
assertNotNull(api.getApiClient());
|
||||||
|
assertEquals("http://petstore.swagger.io:80/v2", api.getApiClient().getBasePath());
|
||||||
|
assertFalse(api.getApiClient().isDebugging());
|
||||||
|
|
||||||
|
ApiClient oldClient = api.getApiClient();
|
||||||
|
|
||||||
|
ApiClient newClient = new ApiClient();
|
||||||
|
newClient.setBasePath("http://example.com");
|
||||||
|
newClient.setDebugging(true);
|
||||||
|
|
||||||
|
// set api client via constructor
|
||||||
|
api = new PetApi(newClient);
|
||||||
|
assertNotNull(api.getApiClient());
|
||||||
|
assertEquals("http://example.com", api.getApiClient().getBasePath());
|
||||||
|
assertTrue(api.getApiClient().isDebugging());
|
||||||
|
|
||||||
|
// set api client via setter method
|
||||||
|
api.setApiClient(oldClient);
|
||||||
|
assertNotNull(api.getApiClient());
|
||||||
|
assertEquals("http://petstore.swagger.io:80/v2", api.getApiClient().getBasePath());
|
||||||
|
assertFalse(api.getApiClient().isDebugging());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testCreateAndGetPet() throws Exception {
|
||||||
|
Pet pet = createPet();
|
||||||
|
api.addPet(pet);
|
||||||
|
|
||||||
|
Pet fetched = api.getPetById(pet.getId());
|
||||||
|
assertPetMatches(pet, fetched);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testCreateAndGetPetWithHttpInfo() throws Exception {
|
||||||
|
Pet pet = createPet();
|
||||||
|
api.addPetWithHttpInfo(pet);
|
||||||
|
|
||||||
|
ApiResponse<Pet> resp = api.getPetByIdWithHttpInfo(pet.getId());
|
||||||
|
assertEquals(200, resp.getStatusCode());
|
||||||
|
assertEquals("application/json", resp.getHeaders().get("Content-Type").get(0));
|
||||||
|
Pet fetched = resp.getData();
|
||||||
|
|
||||||
|
assertPetMatches(pet, fetched);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testCreateAndGetPetAsync() throws Exception {
|
||||||
|
Pet pet = createPet();
|
||||||
|
api.addPet(pet);
|
||||||
|
// to store returned Pet or error message/exception
|
||||||
|
final Map<String, Object> result = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
api.getPetByIdAsync(pet.getId(), new ApiCallback<Pet>() {
|
||||||
|
@Override
|
||||||
|
public void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders) {
|
||||||
|
result.put("error", e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onSuccess(Pet pet, int statusCode, Map<String, List<String>> responseHeaders) {
|
||||||
|
result.put("pet", pet);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onUploadProgress(long bytesWritten, long contentLength, boolean done) {
|
||||||
|
//empty
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDownloadProgress(long bytesRead, long contentLength, boolean done) {
|
||||||
|
//empty
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// the API call should be executed asynchronously, so result should be empty at the moment
|
||||||
|
assertTrue(result.isEmpty());
|
||||||
|
|
||||||
|
// wait for the asynchronous call to finish (at most 10 seconds)
|
||||||
|
final int maxTry = 10;
|
||||||
|
int tryCount = 1;
|
||||||
|
Pet fetched = null;
|
||||||
|
do {
|
||||||
|
if (tryCount > maxTry) fail("have not got result of getPetByIdAsync after 10 seconds");
|
||||||
|
Thread.sleep(1000);
|
||||||
|
tryCount += 1;
|
||||||
|
if (result.get("error") != null) fail((String) result.get("error"));
|
||||||
|
if (result.get("pet") != null) {
|
||||||
|
fetched = (Pet) result.get("pet");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} while (result.isEmpty());
|
||||||
|
assertPetMatches(pet, fetched);
|
||||||
|
|
||||||
|
// test getting a nonexistent pet
|
||||||
|
result.clear();
|
||||||
|
api.getPetByIdAsync(-10000L, new ApiCallback<Pet>() {
|
||||||
|
@Override
|
||||||
|
public void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders) {
|
||||||
|
result.put("exception", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onSuccess(Pet pet, int statusCode, Map<String, List<String>> responseHeaders) {
|
||||||
|
result.put("pet", pet);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onUploadProgress(long bytesWritten, long contentLength, boolean done) {
|
||||||
|
//empty
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDownloadProgress(long bytesRead, long contentLength, boolean done) {
|
||||||
|
//empty
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// wait for the asynchronous call to finish (at most 10 seconds)
|
||||||
|
tryCount = 1;
|
||||||
|
ApiException exception = null;
|
||||||
|
do {
|
||||||
|
if (tryCount > maxTry) fail("have not got result of getPetByIdAsync after 10 seconds");
|
||||||
|
Thread.sleep(1000);
|
||||||
|
tryCount += 1;
|
||||||
|
if (result.get("pet") != null) fail("expected an error");
|
||||||
|
if (result.get("exception") != null) {
|
||||||
|
exception = (ApiException) result.get("exception");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} while (result.isEmpty());
|
||||||
|
assertNotNull(exception);
|
||||||
|
assertEquals(404, exception.getCode());
|
||||||
|
assertEquals("Not Found", exception.getMessage());
|
||||||
|
assertEquals("application/json", exception.getResponseHeaders().get("Content-Type").get(0));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testCreateAndGetMultiplePetsAsync() throws Exception {
|
||||||
|
Pet pet1 = createPet();
|
||||||
|
Pet pet2 = createPet();
|
||||||
|
|
||||||
|
final CountDownLatch addLatch = new CountDownLatch(2);
|
||||||
|
final TestApiCallback<Void> addCallback1 = new TestApiCallback<Void>(addLatch);
|
||||||
|
final TestApiCallback<Void> addCallback2 = new TestApiCallback<Void>(addLatch);
|
||||||
|
|
||||||
|
// Make 2 simultaneous calls
|
||||||
|
api.addPetAsync(pet1, addCallback1);
|
||||||
|
api.addPetAsync(pet2, addCallback2);
|
||||||
|
|
||||||
|
// wait for both asynchronous calls to finish (at most 10 seconds)
|
||||||
|
assertTrue(addLatch.await(10, TimeUnit.SECONDS));
|
||||||
|
|
||||||
|
assertTrue(addCallback1.isDone());
|
||||||
|
assertTrue(addCallback2.isDone());
|
||||||
|
|
||||||
|
if (!addCallback1.isSuccess()) throw addCallback1.getException();
|
||||||
|
if (!addCallback2.isSuccess()) throw addCallback2.getException();
|
||||||
|
|
||||||
|
assertValidProgress(addCallback1.getUploadProgress());
|
||||||
|
assertValidProgress(addCallback2.getUploadProgress());
|
||||||
|
|
||||||
|
final CountDownLatch getLatch = new CountDownLatch(3);
|
||||||
|
final TestApiCallback<Pet> getCallback1 = new TestApiCallback<Pet>(getLatch);
|
||||||
|
final TestApiCallback<Pet> getCallback2 = new TestApiCallback<Pet>(getLatch);
|
||||||
|
final TestApiCallback<Pet> getCallback3 = new TestApiCallback<Pet>(getLatch);
|
||||||
|
|
||||||
|
api.getPetByIdAsync(pet1.getId(), getCallback1);
|
||||||
|
api.getPetByIdAsync(pet2.getId(), getCallback2);
|
||||||
|
// Get nonexistent pet
|
||||||
|
api.getPetByIdAsync(-10000L, getCallback3);
|
||||||
|
|
||||||
|
// wait for all asynchronous calls to finish (at most 10 seconds)
|
||||||
|
assertTrue(getLatch.await(10, TimeUnit.SECONDS));
|
||||||
|
|
||||||
|
assertTrue(getCallback1.isDone());
|
||||||
|
assertTrue(getCallback2.isDone());
|
||||||
|
assertTrue(getCallback3.isDone());
|
||||||
|
|
||||||
|
if (!getCallback1.isSuccess()) throw getCallback1.getException();
|
||||||
|
if (!getCallback2.isSuccess()) throw getCallback2.getException();
|
||||||
|
|
||||||
|
assertPetMatches(pet1, getCallback1.getResult());
|
||||||
|
assertPetMatches(pet2, getCallback2.getResult());
|
||||||
|
|
||||||
|
assertValidProgress(getCallback1.getDownloadProgress());
|
||||||
|
assertValidProgress(getCallback2.getDownloadProgress());
|
||||||
|
|
||||||
|
// Last callback should fail with ApiException
|
||||||
|
assertFalse(getCallback3.isSuccess());
|
||||||
|
final ApiException exception = getCallback3.getException();
|
||||||
|
assertNotNull(exception);
|
||||||
|
assertEquals(404, exception.getCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testUpdatePet() throws Exception {
|
||||||
|
Pet pet = createPet();
|
||||||
|
pet.setName("programmer");
|
||||||
|
|
||||||
|
api.updatePet(pet);
|
||||||
|
|
||||||
|
Pet fetched = api.getPetById(pet.getId());
|
||||||
|
assertPetMatches(pet, fetched);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testFindPetsByStatus() throws Exception {
|
||||||
|
Pet pet = createPet();
|
||||||
|
pet.setName("programmer");
|
||||||
|
pet.setStatus(Pet.StatusEnum.PENDING);
|
||||||
|
|
||||||
|
api.updatePet(pet);
|
||||||
|
|
||||||
|
List<Pet> pets = api.findPetsByStatus(Arrays.asList("pending"));
|
||||||
|
assertNotNull(pets);
|
||||||
|
|
||||||
|
boolean found = false;
|
||||||
|
for (Pet fetched : pets) {
|
||||||
|
if (fetched.getId().equals(pet.getId())) {
|
||||||
|
found = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
assertTrue(found);
|
||||||
|
|
||||||
|
api.deletePet(pet.getId(), null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@Ignore
|
||||||
|
public void testFindPetsByTags() throws Exception {
|
||||||
|
Pet pet = createPet();
|
||||||
|
pet.setName("monster");
|
||||||
|
pet.setStatus(Pet.StatusEnum.AVAILABLE);
|
||||||
|
|
||||||
|
List<Tag> tags = new ArrayList<Tag>();
|
||||||
|
Tag tag1 = new Tag();
|
||||||
|
tag1.setName("friendly");
|
||||||
|
tags.add(tag1);
|
||||||
|
pet.setTags(tags);
|
||||||
|
|
||||||
|
api.updatePet(pet);
|
||||||
|
|
||||||
|
List<Pet> pets = api.findPetsByTags(Arrays.asList("friendly"));
|
||||||
|
assertNotNull(pets);
|
||||||
|
|
||||||
|
boolean found = false;
|
||||||
|
for (Pet fetched : pets) {
|
||||||
|
if (fetched.getId().equals(pet.getId())) {
|
||||||
|
found = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
assertTrue(found);
|
||||||
|
|
||||||
|
api.deletePet(pet.getId(), null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testUpdatePetWithForm() throws Exception {
|
||||||
|
Pet pet = createPet();
|
||||||
|
pet.setName("frank");
|
||||||
|
api.addPet(pet);
|
||||||
|
|
||||||
|
Pet fetched = api.getPetById(pet.getId());
|
||||||
|
|
||||||
|
api.updatePetWithForm(fetched.getId(), "furt", null);
|
||||||
|
Pet updated = api.getPetById(fetched.getId());
|
||||||
|
|
||||||
|
assertEquals(updated.getName(), "furt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testDeletePet() throws Exception {
|
||||||
|
Pet pet = createPet();
|
||||||
|
api.addPet(pet);
|
||||||
|
|
||||||
|
Pet fetched = api.getPetById(pet.getId());
|
||||||
|
api.deletePet(fetched.getId(), null);
|
||||||
|
|
||||||
|
try {
|
||||||
|
fetched = api.getPetById(fetched.getId());
|
||||||
|
fail("expected an error");
|
||||||
|
} catch (ApiException e) {
|
||||||
|
assertEquals(404, e.getCode());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testUploadFile() throws Exception {
|
||||||
|
Pet pet = createPet();
|
||||||
|
api.addPet(pet);
|
||||||
|
|
||||||
|
File file = new File("hello.txt");
|
||||||
|
BufferedWriter writer = new BufferedWriter(new FileWriter(file));
|
||||||
|
writer.write("Hello world!");
|
||||||
|
writer.close();
|
||||||
|
|
||||||
|
api.uploadFile(pet.getId(), "a test file", new File(file.getAbsolutePath()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testEqualsAndHashCode() {
|
||||||
|
Pet pet1 = new Pet();
|
||||||
|
Pet pet2 = new Pet();
|
||||||
|
assertTrue(pet1.equals(pet2));
|
||||||
|
assertTrue(pet2.equals(pet1));
|
||||||
|
assertTrue(pet1.hashCode() == pet2.hashCode());
|
||||||
|
assertTrue(pet1.equals(pet1));
|
||||||
|
assertTrue(pet1.hashCode() == pet1.hashCode());
|
||||||
|
|
||||||
|
pet2.setName("really-happy");
|
||||||
|
pet2.setPhotoUrls(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"));
|
||||||
|
assertFalse(pet1.equals(pet2));
|
||||||
|
assertFalse(pet2.equals(pet1));
|
||||||
|
assertFalse(pet1.hashCode() == (pet2.hashCode()));
|
||||||
|
assertTrue(pet2.equals(pet2));
|
||||||
|
assertTrue(pet2.hashCode() == pet2.hashCode());
|
||||||
|
|
||||||
|
pet1.setName("really-happy");
|
||||||
|
pet1.setPhotoUrls(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"));
|
||||||
|
assertTrue(pet1.equals(pet2));
|
||||||
|
assertTrue(pet2.equals(pet1));
|
||||||
|
assertTrue(pet1.hashCode() == pet2.hashCode());
|
||||||
|
assertTrue(pet1.equals(pet1));
|
||||||
|
assertTrue(pet1.hashCode() == pet1.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private Pet createPet() {
|
||||||
|
Pet pet = new Pet();
|
||||||
|
pet.setId(1234567L);
|
||||||
|
pet.setName("gorilla");
|
||||||
|
|
||||||
|
Category category = new Category();
|
||||||
|
category.setName("really-happy");
|
||||||
|
|
||||||
|
pet.setCategory(category);
|
||||||
|
pet.setStatus(Pet.StatusEnum.AVAILABLE);
|
||||||
|
List<String> photos = Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2");
|
||||||
|
pet.setPhotoUrls(photos);
|
||||||
|
|
||||||
|
return pet;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String serializeJson(Object o, ApiClient apiClient) {
|
||||||
|
return apiClient.getJSON().serialize(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
private <T> T deserializeJson(String json, Type type, ApiClient apiClient) {
|
||||||
|
return (T) apiClient.getJSON().deserialize(json, type);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void assertPetMatches(Pet expected, Pet actual) {
|
||||||
|
assertNotNull(actual);
|
||||||
|
assertEquals(expected.getId(), actual.getId());
|
||||||
|
assertNotNull(actual.getCategory());
|
||||||
|
assertEquals(expected.getCategory().getName(),
|
||||||
|
actual.getCategory().getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Assert that the given upload/download progress list satisfies the
|
||||||
|
* following constraints:
|
||||||
|
*
|
||||||
|
* - List is not empty
|
||||||
|
* - Byte count should be nondecreasing
|
||||||
|
* - The last element, and only the last element, should have done=true
|
||||||
|
*/
|
||||||
|
private void assertValidProgress(List<Progress> progressList) {
|
||||||
|
assertFalse(progressList.isEmpty());
|
||||||
|
|
||||||
|
Progress prev = null;
|
||||||
|
int index = 0;
|
||||||
|
for (Progress progress : progressList) {
|
||||||
|
if (prev != null) {
|
||||||
|
if (prev.done || prev.bytes > progress.bytes) {
|
||||||
|
fail("Progress list out of order at index " + index
|
||||||
|
+ ": " + progressList);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
prev = progress;
|
||||||
|
index += 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!prev.done) {
|
||||||
|
fail("Last progress item should have done=true: " + progressList);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class TestApiCallback<T> implements ApiCallback<T> {
|
||||||
|
|
||||||
|
private final CountDownLatch latch;
|
||||||
|
private final ConcurrentLinkedQueue<Progress> uploadProgress =
|
||||||
|
new ConcurrentLinkedQueue<Progress>();
|
||||||
|
private final ConcurrentLinkedQueue<Progress> downloadProgress =
|
||||||
|
new ConcurrentLinkedQueue<Progress>();
|
||||||
|
|
||||||
|
private boolean done;
|
||||||
|
private boolean success;
|
||||||
|
private ApiException exception;
|
||||||
|
private T result;
|
||||||
|
|
||||||
|
public TestApiCallback(CountDownLatch latch) {
|
||||||
|
this.latch = latch;
|
||||||
|
this.done = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders) {
|
||||||
|
exception = e;
|
||||||
|
this.done = true;
|
||||||
|
this.success = false;
|
||||||
|
latch.countDown();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onSuccess(T result, int statusCode, Map<String, List<String>> responseHeaders) {
|
||||||
|
this.result = result;
|
||||||
|
this.done = true;
|
||||||
|
this.success = true;
|
||||||
|
latch.countDown();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onUploadProgress(long bytesWritten, long contentLength, boolean done) {
|
||||||
|
uploadProgress.add(new Progress(bytesWritten, contentLength, done));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDownloadProgress(long bytesRead, long contentLength, boolean done) {
|
||||||
|
downloadProgress.add(new Progress(bytesRead, contentLength, done));
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isDone() {
|
||||||
|
return done;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSuccess() {
|
||||||
|
return success;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApiException getException() {
|
||||||
|
return exception;
|
||||||
|
}
|
||||||
|
|
||||||
|
public T getResult() {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Progress> getUploadProgress() {
|
||||||
|
return new ArrayList<Progress>(uploadProgress);
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Progress> getDownloadProgress() {
|
||||||
|
return new ArrayList<Progress>(downloadProgress);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class Progress {
|
||||||
|
public final long bytes;
|
||||||
|
public final long contentLength;
|
||||||
|
public final boolean done;
|
||||||
|
|
||||||
|
public Progress(long bytes, long contentLength, boolean done) {
|
||||||
|
this.bytes = bytes;
|
||||||
|
this.contentLength = contentLength;
|
||||||
|
this.done = done;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "<Progress " + bytes + " " + contentLength + " " + done + ">";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||||
|
import com.google.gson.TypeAdapter;
|
||||||
|
import com.google.gson.annotations.JsonAdapter;
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
import com.google.gson.stream.JsonReader;
|
||||||
|
import com.google.gson.stream.JsonWriter;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model tests for ArrayOfArrayOfNumberOnly
|
||||||
|
*/
|
||||||
|
public class ArrayOfArrayOfNumberOnlyTest {
|
||||||
|
private final ArrayOfArrayOfNumberOnly model = new ArrayOfArrayOfNumberOnly();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model tests for ArrayOfArrayOfNumberOnly
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void test() {
|
||||||
|
// TODO: test ArrayOfArrayOfNumberOnly
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'arrayArrayNumber'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void arrayArrayNumberTest() {
|
||||||
|
BigDecimal b1 = new BigDecimal("12.3");
|
||||||
|
BigDecimal b2 = new BigDecimal("5.6");
|
||||||
|
List<BigDecimal> arrayArrayNumber = new ArrayList<BigDecimal>();
|
||||||
|
arrayArrayNumber.add(b1);
|
||||||
|
arrayArrayNumber.add(b2);
|
||||||
|
model.getArrayArrayNumber().add(arrayArrayNumber);
|
||||||
|
|
||||||
|
// create another instance for comparison
|
||||||
|
BigDecimal b3 = new BigDecimal("12.3");
|
||||||
|
BigDecimal b4 = new BigDecimal("5.6");
|
||||||
|
ArrayOfArrayOfNumberOnly model2 = new ArrayOfArrayOfNumberOnly();
|
||||||
|
List<BigDecimal> arrayArrayNumber2 = new ArrayList<BigDecimal>();
|
||||||
|
arrayArrayNumber2.add(b1);
|
||||||
|
arrayArrayNumber2.add(b2);
|
||||||
|
model2.getArrayArrayNumber().add(arrayArrayNumber2);
|
||||||
|
|
||||||
|
Assert.assertTrue(model2.equals(model));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,103 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import com.google.gson.TypeAdapter;
|
||||||
|
import com.google.gson.annotations.JsonAdapter;
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
import com.google.gson.stream.JsonReader;
|
||||||
|
import com.google.gson.stream.JsonWriter;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import org.openapitools.client.model.Category;
|
||||||
|
import org.openapitools.client.model.Tag;
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model tests for Pet
|
||||||
|
*/
|
||||||
|
public class PetTest {
|
||||||
|
private final Pet model = new Pet();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model tests for Pet
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void testPet() {
|
||||||
|
// test Pet
|
||||||
|
model.setId(1029L);
|
||||||
|
model.setName("Dog");
|
||||||
|
|
||||||
|
Pet model2 = new Pet();
|
||||||
|
model2.setId(1029L);
|
||||||
|
model2.setName("Dog");
|
||||||
|
|
||||||
|
Assert.assertTrue(model.equals(model2));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'id'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void idTest() {
|
||||||
|
// TODO: test id
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'category'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void categoryTest() {
|
||||||
|
// TODO: test category
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'name'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void nameTest() {
|
||||||
|
// TODO: test name
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'photoUrls'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void photoUrlsTest() {
|
||||||
|
// TODO: test photoUrls
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'tags'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void tagsTest() {
|
||||||
|
// TODO: test tags
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the property 'status'
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
public void statusTest() {
|
||||||
|
// TODO: test status
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -83,7 +83,7 @@ For [Vendor Extensions](https://github.com/OAI/OpenAPI-Specification/blob/master
|
|||||||
To add test cases (optional) covering the change in the code generator, please refer to [modules/openapi-generator/src/test/java/org/openapitools/codegen](https://github.com/openapitools/openapi-generator/tree/master/modules/openapi-generator/src/test/java/org/openapitools/codegen)
|
To add test cases (optional) covering the change in the code generator, please refer to [modules/openapi-generator/src/test/java/org/openapitools/codegen](https://github.com/openapitools/openapi-generator/tree/master/modules/openapi-generator/src/test/java/org/openapitools/codegen)
|
||||||
|
|
||||||
To test the templates, please perform the following:
|
To test the templates, please perform the following:
|
||||||
- Update the Petstore sample by running the shell script under `bin` folder. For example, run `./bin/ruby-petstore.sh` to update the Ruby PetStore API client under [`samples/client/petstore/ruby`](https://github.com/openapitools/openapi-generator/tree/master/samples/client/petstore/ruby) For Windows, the batch files can be found under `bin\windows` folder. (If you find that there are new files generated or unexpected changes as a result of the update, that's not unusual as the test cases are added to the OpenAPI spec from time to time. If you've questions or concerns, please open a ticket to start a discussion)
|
- Update the Petstore sample by running the shell script under `bin` folder. For example, run `./bin/ruby-client-petstore.sh` to update the Ruby PetStore API client under [`samples/client/petstore/ruby`](https://github.com/openapitools/openapi-generator/tree/master/samples/client/petstore/ruby) For Windows, the batch files can be found under `bin\windows` folder. (If you find that there are new files generated or unexpected changes as a result of the update, that's not unusual as the test cases are added to the OpenAPI spec from time to time. If you've questions or concerns, please open a ticket to start a discussion)
|
||||||
- Run the tests in the sample folder, e.g. in `samples/client/petstore/ruby`, run `mvn integration-test -rf :RubyPetstoreClientTests`. (some languages may not contain unit testing for Petstore and we're looking for contribution from the community to implement those tests)
|
- Run the tests in the sample folder, e.g. in `samples/client/petstore/ruby`, run `mvn integration-test -rf :RubyPetstoreClientTests`. (some languages may not contain unit testing for Petstore and we're looking for contribution from the community to implement those tests)
|
||||||
- Finally, git commit the updated samples files: `git commit -a`
|
- Finally, git commit the updated samples files: `git commit -a`
|
||||||
(`git add -A` if added files with new test cases)
|
(`git add -A` if added files with new test cases)
|
||||||
|
|||||||
100
README.md
100
README.md
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
:notebook_with_decorative_cover: The eBook [A Beginner's Guide to Code Generation for REST APIs](https://gumroad.com/l/swagger_codegen_beginner) is a good starting point for beginners :notebook_with_decorative_cover:
|
:notebook_with_decorative_cover: The eBook [A Beginner's Guide to Code Generation for REST APIs](https://gumroad.com/l/swagger_codegen_beginner) is a good starting point for beginners :notebook_with_decorative_cover:
|
||||||
|
|
||||||
:warning: If the OpenAPI spec, templates or any input (e.g. options, envirionment variables) is obtained from an untrusted source or environment, please make sure you've reviewed these inputs before using OpenAPI Generator to generate the API client, server stub or documentation to avoid potential security issues (e.g. [code injection](https://en.wikipedia.org/wiki/Code_injection)) :warning:
|
:warning: If the OpenAPI spec, templates or any input (e.g. options, environment variables) is obtained from an untrusted source or environment, please make sure you've reviewed these inputs before using OpenAPI Generator to generate the API client, server stub or documentation to avoid potential security issues (e.g. [code injection](https://en.wikipedia.org/wiki/Code_injection)) :warning:
|
||||||
|
|
||||||
:bangbang: Both "OpenAPI Tools" (https://OpenAPITools.org - the parent organization of OpenAPI Generator) and "OpenAPI Generator" are not affiliated with OpenAPI Initiative (OAI) :bangbang:
|
:bangbang: Both "OpenAPI Tools" (https://OpenAPITools.org - the parent organization of OpenAPI Generator) and "OpenAPI Generator" are not affiliated with OpenAPI Initiative (OAI) :bangbang:
|
||||||
|
|
||||||
@@ -38,8 +38,8 @@ OpenAPI Generator allows generation of API client libraries (SDK generation), se
|
|||||||
|
|
||||||
| | Languages/Frameworks |
|
| | Languages/Frameworks |
|
||||||
|-|-|
|
|-|-|
|
||||||
**API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later), **C++** (cpprest, Qt5, Tizen), **Clojure**, **Dart (1.x, 2.x)**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client), **Kotlin**, **Lua**, **Node.js** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types) **Objective-C**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (rust, rust-server), **Scala** (akka, http4s, scalaz, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x), **Typescript** (AngularJS, Angular (2.x - 7.x), Aurelia, Axios, Fetch, Inversify, jQuery, Node)
|
**API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later), **C++** (cpprest, Qt5, Tizen), **Clojure**, **Dart (1.x, 2.x)**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client), **Kotlin**, **Lua**, **Node.js** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types) **Objective-C**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (rust, rust-server), **Scala** (akka, http4s, scalaz, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x), **Typescript** (AngularJS, Angular (2.x - 7.x), Aurelia, Axios, Fetch, Inversify, jQuery, Node, Rxjs)
|
||||||
**Server stubs** | **Ada**, **C#** (ASP.NET Core, NancyFx), **C++** (Pistache, Restbed), **Erlang**, **Go** (net/http, Gin), **Haskell** (Servant), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples)), **Kotlin** (Spring Boot), **PHP** (Laravel, Lumen, Slim, Silex, [Symfony](https://symfony.com/), [Zend Expressive](https://github.com/zendframework/zend-expressive)), **Python** (Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** (rust-server), **Scala** ([Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), Scalatra)
|
**Server stubs** | **Ada**, **C#** (ASP.NET Core, NancyFx), **C++** (Pistache, Restbed), **Erlang**, **Go** (net/http, Gin), **Haskell** (Servant), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples)), **Kotlin** (Spring Boot, Ktor), **PHP** (Laravel, Lumen, Slim, Silex, [Symfony](https://symfony.com/), [Zend Expressive](https://github.com/zendframework/zend-expressive)), **Python** (Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** (rust-server), **Scala** ([Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), [Play](https://www.playframework.com/), Scalatra)
|
||||||
**API documentation generators** | **HTML**, **Confluence Wiki**
|
**API documentation generators** | **HTML**, **Confluence Wiki**
|
||||||
**Configuration files** | [**Apache2**](https://httpd.apache.org/)
|
**Configuration files** | [**Apache2**](https://httpd.apache.org/)
|
||||||
**Others** | **GraphQL**, **JMeter**, **MySQL Schema**
|
**Others** | **GraphQL**, **JMeter**, **MySQL Schema**
|
||||||
@@ -88,7 +88,7 @@ For old releases, please refer to the [**Release**](https://github.com/OpenAPITo
|
|||||||
|
|
||||||
## [1.2 - Artifacts on Maven Central](#table-of-contents)
|
## [1.2 - Artifacts on Maven Central](#table-of-contents)
|
||||||
|
|
||||||
You can find our released artefacts on maven central:
|
You can find our released artifacts on maven central:
|
||||||
|
|
||||||
**Core:**
|
**Core:**
|
||||||
```xml
|
```xml
|
||||||
@@ -226,7 +226,7 @@ Here is an example usage to generate a Ruby client:
|
|||||||
openapi-generator generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g ruby -o /tmp/test/
|
openapi-generator generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g ruby -o /tmp/test/
|
||||||
```
|
```
|
||||||
|
|
||||||
To reinstall with the latest master, run `brew reinstall --HEAD openapi-generator`
|
To reinstall with the latest master, run `brew uninstall openapi-generator && brew install --HEAD openapi-generator`
|
||||||
|
|
||||||
### [1.6 - Docker](#table-of-contents)
|
### [1.6 - Docker](#table-of-contents)
|
||||||
|
|
||||||
@@ -374,7 +374,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat
|
|||||||
```
|
```
|
||||||
(if you're on Windows, replace the last command with `java -jar modules\openapi-generator-cli\target\openapi-generator-cli.jar generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g php -o c:\temp\php_api_client`)
|
(if you're on Windows, replace the last command with `java -jar modules\openapi-generator-cli\target\openapi-generator-cli.jar generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g php -o c:\temp\php_api_client`)
|
||||||
|
|
||||||
You can also download the JAR (latest release) directly from [maven.org](http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/3.0.0/openapi-generator-cli-3.0.0.jar)
|
You can also download the JAR (latest release) directly from [maven.org](http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/3.3.4/openapi-generator-cli-3.3.4.jar)
|
||||||
|
|
||||||
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
|
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
|
||||||
|
|
||||||
@@ -485,7 +485,7 @@ The server is sponsored by [Linode](https://www.linode.com/) [
|
(These services are beta and do not have any guarantee on service level)
|
||||||
|
|
||||||
Please refer to [online-openapi-generator.md](docs/online-openapi-generator.md) on how to run and use the `openapi-generator-online` - a web service for `openapi-generator`.
|
Please refer to [online.md](docs/online.md) on how to run and use the `openapi-generator-online` - a web service for `openapi-generator`.
|
||||||
|
|
||||||
### [3.4 - License information on Generated Code](#table-of-contents)
|
### [3.4 - License information on Generated Code](#table-of-contents)
|
||||||
|
|
||||||
@@ -499,16 +499,24 @@ When code is generated from this project, it shall be considered **AS IS** and o
|
|||||||
## [4 - Companies/Projects using OpenAPI Generator](#table-of-contents)
|
## [4 - Companies/Projects using OpenAPI Generator](#table-of-contents)
|
||||||
Here are some companies/projects (alphabetical order) using OpenAPI Generator in production. To add your company/project to the list, please visit [README.md](README.md) and click on the icon to edit the page.
|
Here are some companies/projects (alphabetical order) using OpenAPI Generator in production. To add your company/project to the list, please visit [README.md](README.md) and click on the icon to edit the page.
|
||||||
|
|
||||||
|
- [Adaptant Solutions AG](https://www.adaptant.io/)
|
||||||
- [Angular.Schule](https://angular.schule/)
|
- [Angular.Schule](https://angular.schule/)
|
||||||
- [ASKUL](https://www.askul.co.jp)
|
- [ASKUL](https://www.askul.co.jp)
|
||||||
- [b<>com](https://b-com.com/en)
|
- [b<>com](https://b-com.com/en)
|
||||||
|
- [BIMData.io](https://bimdata.io)
|
||||||
- [Bithost GmbH](https://www.bithost.ch)
|
- [Bithost GmbH](https://www.bithost.ch)
|
||||||
- [Boxever](https://www.boxever.com/)
|
- [Boxever](https://www.boxever.com/)
|
||||||
|
- [codecentric AG](https://www.codecentric.de/)
|
||||||
|
- [Cupix](https://www.cupix.com/)
|
||||||
|
- [FormAPI](https://formapi.io/)
|
||||||
|
- [GenFlow](https://github.com/RepreZen/GenFlow)
|
||||||
- [GMO Pepabo](https://pepabo.com/en/)
|
- [GMO Pepabo](https://pepabo.com/en/)
|
||||||
|
- [GoDaddy](https://godaddy.com)
|
||||||
- [JustStar](https://www.juststarinfo.com)
|
- [JustStar](https://www.juststarinfo.com)
|
||||||
- [Klarna](https://www.klarna.com/)
|
- [Klarna](https://www.klarna.com/)
|
||||||
- [Metaswitch](https://www.metaswitch.com/)
|
- [Metaswitch](https://www.metaswitch.com/)
|
||||||
- [Myworkout](https://myworkout.com)
|
- [Myworkout](https://myworkout.com)
|
||||||
|
- [Prometheus/Alertmanager](https://github.com/prometheus/alertmanager)
|
||||||
- [Raiffeisen Schweiz Genossenschaft](https://www.raiffeisen.ch)
|
- [Raiffeisen Schweiz Genossenschaft](https://www.raiffeisen.ch)
|
||||||
- [RepreZen API Studio](https://www.reprezen.com/swagger-openapi-code-generation-api-first-microservices-enterprise-development)
|
- [RepreZen API Studio](https://www.reprezen.com/swagger-openapi-code-generation-api-first-microservices-enterprise-development)
|
||||||
- [REST United](https://restunited.com)
|
- [REST United](https://restunited.com)
|
||||||
@@ -517,6 +525,8 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [Telstra](https://dev.telstra.com)
|
- [Telstra](https://dev.telstra.com)
|
||||||
- [TUI InfoTec GmbH](http://www.tui-infotec.com/)
|
- [TUI InfoTec GmbH](http://www.tui-infotec.com/)
|
||||||
- [unblu inc.](https://www.unblu.com/)
|
- [unblu inc.](https://www.unblu.com/)
|
||||||
|
- [Veamly](https://www.veamly.com/)
|
||||||
|
- [Xero](https://www.xero.com/)
|
||||||
- [Zalando](https://www.zalando.com)
|
- [Zalando](https://www.zalando.com)
|
||||||
|
|
||||||
## [5 - Presentations/Videos/Tutorials/Books](#table-of-contents)
|
## [5 - Presentations/Videos/Tutorials/Books](#table-of-contents)
|
||||||
@@ -529,9 +539,23 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- 2018/06/27 - [Lessons Learned from Leading an Open-Source Project Supporting 30+ Programming Languages](https://speakerdeck.com/wing328/lessons-learned-from-leading-an-open-source-project-supporting-30-plus-programming-languages) - [William Cheng](https://github.com/wing328) at [LinuxCon + ContainerCon + CloudOpen China 2018](http://bit.ly/2waDKKX)
|
- 2018/06/27 - [Lessons Learned from Leading an Open-Source Project Supporting 30+ Programming Languages](https://speakerdeck.com/wing328/lessons-learned-from-leading-an-open-source-project-supporting-30-plus-programming-languages) - [William Cheng](https://github.com/wing328) at [LinuxCon + ContainerCon + CloudOpen China 2018](http://bit.ly/2waDKKX)
|
||||||
- 2018/07/19 - [OpenAPI Generator Contribution Quickstart - RingCentral Go SDK](https://medium.com/ringcentral-developers/openapi-generator-for-go-contribution-quickstart-8cc72bf37b53) by [John Wang](https://github.com/grokify)
|
- 2018/07/19 - [OpenAPI Generator Contribution Quickstart - RingCentral Go SDK](https://medium.com/ringcentral-developers/openapi-generator-for-go-contribution-quickstart-8cc72bf37b53) by [John Wang](https://github.com/grokify)
|
||||||
- 2018/08/22 - [OpenAPI Generatorのプロジェクト構成などのメモ](https://yinm.info/20180822/) by [Yusuke Iinuma](https://github.com/yinm)
|
- 2018/08/22 - [OpenAPI Generatorのプロジェクト構成などのメモ](https://yinm.info/20180822/) by [Yusuke Iinuma](https://github.com/yinm)
|
||||||
|
- 2018/09/12 - [RepreZen and OpenAPI 3.0: Now is the Time](https://www.reprezen.com/blog/reprezen-openapi-3.0-upgrade-now-is-the-time) by [Miles Daffin](https://www.reprezen.com/blog/author/miles-daffin)
|
||||||
- 2018/10/31 - [A node package wrapper for openapi-generator](https://github.com/HarmoWatch/openapi-generator-cli)
|
- 2018/10/31 - [A node package wrapper for openapi-generator](https://github.com/HarmoWatch/openapi-generator-cli)
|
||||||
- 2018/11/03 - [OpenAPI Generator + golang + Flutter でアプリ開発](http://ryuichi111std.hatenablog.com/entry/2018/11/03/214005) by [Ryuichi Daigo](https://github.com/ryuichi111)
|
- 2018/11/03 - [OpenAPI Generator + golang + Flutter でアプリ開発](http://ryuichi111std.hatenablog.com/entry/2018/11/03/214005) by [Ryuichi Daigo](https://github.com/ryuichi111)
|
||||||
|
- 2018/11/15 - [基于openapi3.0的yaml文件生成java代码的一次实践](https://blog.csdn.net/yzy199391/article/details/84023982) by [焱魔王](https://me.csdn.net/yzy199391)
|
||||||
- 2018/11/19 - [OpenAPIs are everywhere](https://youtu.be/-lDot4Yn7Dg) by [Jeremie Bresson (Unblu)](https://github.com/jmini) at [EclipseCon Europe 2018](https://www.eclipsecon.org/europe2018)
|
- 2018/11/19 - [OpenAPIs are everywhere](https://youtu.be/-lDot4Yn7Dg) by [Jeremie Bresson (Unblu)](https://github.com/jmini) at [EclipseCon Europe 2018](https://www.eclipsecon.org/europe2018)
|
||||||
|
- 2018/12/09 - [openapi-generator をカスタマイズする方法](https://qiita.com/watiko/items/0961287c02eac9211572) by [@watiko](https://qiita.com/watiko)
|
||||||
|
- 2019/01/03 - [Calling a Swagger service from Apex using openapi-generator](https://lekkimworld.com/2019/01/03/calling-a-swagger-service-from-apex-using-openapi-generator/) by [Mikkel Flindt Heisterberg](https://lekkimworld.com)
|
||||||
|
- 2019/01/13 - [OpenAPI GeneratorでRESTful APIの定義書から色々自動生成する](https://ky-yk-d.hatenablog.com/entry/2019/01/13/234108) by [@ky_yk_d](https://twitter.com/ky_yk_d)
|
||||||
|
- 2019/01/30 - [Rapid Application Development With API First Approach Using Open-API Generator](https://dzone.com/articles/rapid-api-development-using-open-api-generator) by [Milan Sonkar](https://dzone.com/users/828329/milan_sonkar.html)
|
||||||
|
- 2019/02/02 - [平静を保ち、コードを生成せよ 〜 OpenAPI Generator誕生の背景と軌跡 〜](https://speakerdeck.com/akihito_nakano/gunmaweb34) by [中野暁人](https://github.com/ackintosh) at [Gunma.web #34 スキーマ駆動開発](https://gunmaweb.connpass.com/event/113974/)
|
||||||
|
- 2019/02/20 - [An adventure in OpenAPI V3 code generation](https://mux.com/blog/an-adventure-in-openapi-v3-api-code-generation/) by [Phil Cluff](https://mux.com/blog/author/philc/)
|
||||||
|
- 2019/02/26 - [Building API Services: A Beginner’s Guide](https://medium.com/google-cloud/building-api-services-a-beginners-guide-7274ae4c547f) by [Ratros Y.](https://medium.com/@ratrosy) in [Google Cloud Platofrm Blog](https://medium.com/google-cloud)
|
||||||
|
- 2019/02/26 - [Building APIs with OpenAPI: Continued](https://medium.com/@ratrosy/building-apis-with-openapi-continued-5d0faaed32eb) by [Ratros Y.](https://medium.com/@ratrosy) in [Google Cloud Platofrm Blog](https://medium.com/google-cloud)
|
||||||
|
- 2019-03-07 - [OpenAPI Generator で Spring Boot と Angular をタイプセーフに繋ぐ](https://qiita.com/chibato/items/e4a748db12409b40c02f) by [Tomofumi Chiba](https://github.com/chibat)
|
||||||
|
- 2019-03-25 - [Access any REST service with the SAP S/4HANA Cloud SDK](https://blogs.sap.com/2019/03/25/integrate-sap-s4hana-cloud-sdk-with-open-api/) by [Alexander Duemont](https://people.sap.com/alexander.duemont)
|
||||||
|
- 2019-03-25 - [OpenAPI generatorを試してみる](https://qiita.com/amuyikam/items/e8a45daae59c68be0fc8) by [@amuyikam](https://twitter.com/amuyikam)
|
||||||
|
|
||||||
|
|
||||||
## [6 - About Us](#table-of-contents)
|
## [6 - About Us](#table-of-contents)
|
||||||
|
|
||||||
@@ -540,14 +564,14 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
OpenAPI Generator core team members are contributors who have been making significant contributions (review issues, fix bugs, make enhancements, etc) to the project on a regular basis.
|
OpenAPI Generator core team members are contributors who have been making significant contributions (review issues, fix bugs, make enhancements, etc) to the project on a regular basis.
|
||||||
|
|
||||||
#### Core Team Members
|
#### Core Team Members
|
||||||
* [@wing328](https://github.com/wing328) (2015/07)
|
* [@wing328](https://github.com/wing328) (2015/07) [:heart:](https://www.patreon.com/wing328)
|
||||||
* [@jimschubert](https://github.com/jimschubert) (2016/05)
|
* [@jimschubert](https://github.com/jimschubert) (2016/05) [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* [@cbornet](https://github.com/cbornet) (2016/05)
|
* [@cbornet](https://github.com/cbornet) (2016/05)
|
||||||
* [@jaz-ah](https://github.com/jaz-ah) (2016/05)
|
* [@ackintosh](https://github.com/ackintosh) (2018/02) [:heart:](https://www.patreon.com/ackintosh/overview)
|
||||||
* [@ackintosh](https://github.com/ackintosh) (2018/02)
|
|
||||||
* [@JFCote](https://github.com/JFCote) (2018/03)
|
|
||||||
* [@jmini](https://github.com/jmini) (2018/04)
|
* [@jmini](https://github.com/jmini) (2018/04)
|
||||||
|
|
||||||
|
:heart: = Link to support the contributor directly
|
||||||
|
|
||||||
#### Template Creator
|
#### Template Creator
|
||||||
Here is a list of template creators:
|
Here is a list of template creators:
|
||||||
* API Clients:
|
* API Clients:
|
||||||
@@ -555,23 +579,23 @@ Here is a list of template creators:
|
|||||||
* Akka-Scala: @cchafer
|
* Akka-Scala: @cchafer
|
||||||
* Apex: @asnelling
|
* Apex: @asnelling
|
||||||
* Bash: @bkryza
|
* Bash: @bkryza
|
||||||
* C: @PowerOfCreation @zhemant
|
* C: @PowerOfCreation @zhemant [:heart:](https://www.patreon.com/zhemant)
|
||||||
* C++ REST: @Danielku15
|
* C++ REST: @Danielku15
|
||||||
* C# (.NET 2.0): @who
|
* C# (.NET 2.0): @who
|
||||||
* C# (.NET Standard 1.3 ): @Gronsak
|
* C# (.NET Standard 1.3 ): @Gronsak
|
||||||
* C# (.NET 4.5 refactored): @jimschubert
|
* C# (.NET 4.5 refactored): @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* Clojure: @xhh
|
* Clojure: @xhh
|
||||||
* Dart: @yissachar
|
* Dart: @yissachar
|
||||||
* Dart (refactor): @joernahrens
|
* Dart (refactor): @joernahrens
|
||||||
* Dart 2: @swipesight
|
* Dart 2: @swipesight
|
||||||
* Dart (Jaguar): @jaumard
|
* Dart (Jaguar): @jaumard
|
||||||
* Elixir: @niku
|
* Elixir: @niku
|
||||||
* Elm: @trenneman
|
* Elm: @eriktim
|
||||||
* Eiffel: @jvelilla
|
* Eiffel: @jvelilla
|
||||||
* Erlang: @tsloughter
|
* Erlang: @tsloughter
|
||||||
* Erlang (PropEr): @jfacorro @robertoaloi
|
* Erlang (PropEr): @jfacorro @robertoaloi
|
||||||
* Groovy: @victorgit
|
* Groovy: @victorgit
|
||||||
* Go: @wing328
|
* Go: @wing328 [:heart:](https://www.patreon.com/wing328)
|
||||||
* Go (rewritten in 2.3.0): @antihax
|
* Go (rewritten in 2.3.0): @antihax
|
||||||
* Haskell (http-client): @jonschoning
|
* Haskell (http-client): @jonschoning
|
||||||
* Java (Feign): @davidkiss
|
* Java (Feign): @davidkiss
|
||||||
@@ -589,9 +613,9 @@ Here is a list of template creators:
|
|||||||
* Javascript (Closure-annotated Angular) @achew22
|
* Javascript (Closure-annotated Angular) @achew22
|
||||||
* Javascript (Flow types) @jaypea
|
* Javascript (Flow types) @jaypea
|
||||||
* JMeter: @davidkiss
|
* JMeter: @davidkiss
|
||||||
* Kotlin: @jimschubert
|
* Kotlin: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* Lua: @daurnimator
|
* Lua: @daurnimator
|
||||||
* Perl: @wing328
|
* Perl: @wing328 [:heart:](https://www.patreon.com/wing328)
|
||||||
* PHP (Guzzle): @baartosz
|
* PHP (Guzzle): @baartosz
|
||||||
* PowerShell: @beatcracker
|
* PowerShell: @beatcracker
|
||||||
* R: @ramnov
|
* R: @ramnov
|
||||||
@@ -609,9 +633,10 @@ Here is a list of template creators:
|
|||||||
* TypeScript (Fetch): @leonyu
|
* TypeScript (Fetch): @leonyu
|
||||||
* TypeScript (jQuery): @bherila
|
* TypeScript (jQuery): @bherila
|
||||||
* TypeScript (Node): @mhardorf
|
* TypeScript (Node): @mhardorf
|
||||||
|
* TypeScript (Rxjs): @denyo
|
||||||
* Server Stubs
|
* Server Stubs
|
||||||
* Ada: @stcarrez
|
* Ada: @stcarrez
|
||||||
* C# ASP.NET5: @jimschubert
|
* C# ASP.NET5: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* C# NancyFX: @mstefaniuk
|
* C# NancyFX: @mstefaniuk
|
||||||
* C++ (Qt5 QHttpEngine): @etherealjoy
|
* C++ (Qt5 QHttpEngine): @etherealjoy
|
||||||
* C++ Pistache: @sebymiano
|
* C++ Pistache: @sebymiano
|
||||||
@@ -630,26 +655,30 @@ Here is a list of template creators:
|
|||||||
* JAX-RS CXF: @hiveship
|
* JAX-RS CXF: @hiveship
|
||||||
* JAX-RS CXF (CDI): @nickcmaynard
|
* JAX-RS CXF (CDI): @nickcmaynard
|
||||||
* JAX-RS RestEasy (JBoss EAP): @jfiala
|
* JAX-RS RestEasy (JBoss EAP): @jfiala
|
||||||
* Kotlin: @jimschubert
|
* Kotlin: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* Kotlin (Spring Boot): @dr4ke616
|
* Kotlin (Spring Boot): @dr4ke616
|
||||||
* PHP Laravel: @renepardon
|
* PHP Laravel: @renepardon
|
||||||
* PHP Lumen: @abcsun
|
* PHP Lumen: @abcsun
|
||||||
* PHP Slim: @jfastnacht
|
* PHP Slim: @jfastnacht
|
||||||
* PHP Symfony: @ksm2
|
* PHP Symfony: @ksm2
|
||||||
* PHP Zend Expressive (with Path Handler): @Articus
|
* PHP Zend Expressive (with Path Handler): @Articus
|
||||||
|
* Python AIOHTTP: @Jyhess
|
||||||
* Ruby on Rails 5: @zlx
|
* Ruby on Rails 5: @zlx
|
||||||
* Rust (rust-server): @metaswitch
|
* Rust (rust-server): @metaswitch
|
||||||
* Scala Finch: @jimschubert
|
* Scala Finch: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* Scala Lagom: @gmkumar2005
|
* Scala Lagom: @gmkumar2005
|
||||||
|
* Scala Play: @adigerber
|
||||||
* Documentation
|
* Documentation
|
||||||
* HTML Doc 2: @jhitchcock
|
* HTML Doc 2: @jhitchcock
|
||||||
* Confluence Wiki: @jhitchcock
|
* Confluence Wiki: @jhitchcock
|
||||||
* Configuration
|
* Configuration
|
||||||
* Apache2: @stkrwork
|
* Apache2: @stkrwork
|
||||||
* Schema
|
* Schema
|
||||||
* GraphQL: @wing328
|
* GraphQL: @wing328 [:heart:](https://www.patreon.com/wing328)
|
||||||
* MySQL: @ybelenko
|
* MySQL: @ybelenko
|
||||||
|
|
||||||
|
:heart: = Link to support the contributor directly
|
||||||
|
|
||||||
#### How to join the core team
|
#### How to join the core team
|
||||||
|
|
||||||
Here are the requirements to become a core team member:
|
Here are the requirements to become a core team member:
|
||||||
@@ -688,33 +717,35 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| Bash | @frol (2017/07) @bkryza (2017/08) @kenjones-cisco (2017/09) |
|
| Bash | @frol (2017/07) @bkryza (2017/08) @kenjones-cisco (2017/09) |
|
||||||
| C | @zhemant (2018/11) |
|
| C | @zhemant (2018/11) |
|
||||||
| C++ | @ravinikam (2017/07) @stkrwork (2017/07) @fvarose (2017/11) @etherealjoy (2018/02) @martindelille (2018/03) |
|
| C++ | @ravinikam (2017/07) @stkrwork (2017/07) @fvarose (2017/11) @etherealjoy (2018/02) @martindelille (2018/03) |
|
||||||
| C# | @mandrean (2017/08) @jimschubert (2017/09) |
|
| C# | @mandrean (2017/08), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert) |
|
||||||
| Clojure | |
|
| Clojure | |
|
||||||
| Dart | @ircecho (2017/07) @swipesight (2018/09) @jaumard (2018/09) |
|
| Dart | @ircecho (2017/07) @swipesight (2018/09) @jaumard (2018/09) |
|
||||||
| Eiffel | @jvelilla (2017/09) |
|
| Eiffel | @jvelilla (2017/09) |
|
||||||
| Elixir | |
|
| Elixir | @mrmstn (2018/12) |
|
||||||
| Elm | @trenneman (2018/09) |
|
| Elm | @eriktim (2018/09) |
|
||||||
| Erlang | @tsloughter (2017/11) @jfacorro (2018/10) @robertoaloi (2018/10) |
|
| Erlang | @tsloughter (2017/11) @jfacorro (2018/10) @robertoaloi (2018/10) |
|
||||||
| Go | @antihax (2017/11) @bvwells (2017/12) @grokify (2018/07) @kemokemo (2018/09 |
|
| Go | @antihax (2017/11) @bvwells (2017/12) @grokify (2018/07) @kemokemo (2018/09 |
|
||||||
| GraphQL | @renepardon (2018/12) |
|
| GraphQL | @renepardon (2018/12) |
|
||||||
| Groovy | |
|
| Groovy | |
|
||||||
| Haskell | |
|
| Haskell | |
|
||||||
| Java | @bbdouglas (2017/07) @JFCote (2017/08) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01) |
|
| Java | @bbdouglas (2017/07) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01) @karismann (2019/03) |
|
||||||
| Kotlin | @jimschubert (2017/09) @dr4ke616 (2018/08) |
|
| Kotlin | @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @dr4ke616 (2018/08) @karismann (2019/03) |
|
||||||
| Lua | @daurnimator (2017/08) |
|
| Lua | @daurnimator (2017/08) |
|
||||||
| NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) |
|
| NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) |
|
||||||
| ObjC | |
|
| ObjC | |
|
||||||
| Perl | @wing328 (2017/07) |
|
| Perl | @wing328 (2017/07) [:heart:](https://www.patreon.com/wing328) |
|
||||||
| PHP | @jebentier (2017/07) @dkarlovi (2017/07) @mandrean (2017/08) @jfastnacht (2017/09) @ackintosh (2017/09) @ybelenko (2018/07) @renepardon (2018/12) |
|
| PHP | @jebentier (2017/07), @dkarlovi (2017/07), @mandrean (2017/08), @jfastnacht (2017/09), @ackintosh (2017/09) [:heart:](https://www.patreon.com/ackintosh/overview), @ybelenko (2018/07), @renepardon (2018/12) |
|
||||||
| PowerShell | |
|
| PowerShell | |
|
||||||
| Python | @taxpon (2017/07) @frol (2017/07) @mbohlool (2017/07) @cbornet (2017/09) @kenjones-cisco (2017/11) @tomplus (2018/10) |
|
| Python | @taxpon (2017/07) @frol (2017/07) @mbohlool (2017/07) @cbornet (2017/09) @kenjones-cisco (2017/11) @tomplus (2018/10) @Jyhess (2019/01) |
|
||||||
| R | |
|
| R | |
|
||||||
| Ruby | @cliffano (2017/07) @zlx (2017/09) |
|
| Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) |
|
||||||
| Rust | @frol (2017/07) @farcaller (2017/08) @bjgill (2017/12) |
|
| Rust | @frol (2017/07) @farcaller (2017/08) @bjgill (2017/12) |
|
||||||
| Scala | @clasnake (2017/07) @jimschubert (2017/09) @shijinkui (2018/01) @ramzimaalej (2018/03) |
|
| Scala | @clasnake (2017/07), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @shijinkui (2018/01), @ramzimaalej (2018/03) |
|
||||||
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @d-date (2018/03) |
|
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @d-date (2018/03) |
|
||||||
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @nicokoenig (2018/09) @topce (2018/10) |
|
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @nicokoenig (2018/09) @topce (2018/10) |
|
||||||
|
|
||||||
|
:heart: = Link to support the contributor directly
|
||||||
|
|
||||||
### [6.3 - History of OpenAPI Generator](#table-of-contents)
|
### [6.3 - History of OpenAPI Generator](#table-of-contents)
|
||||||
|
|
||||||
OpenAPI Generator is a fork of [Swagger Codegen](https://github.com/swagger-api/swagger-codegen). In view of the issues with the Swagger Codegen 3.0.0 (beta) release and the disagreement on the project's direction, more than 40 top contributors and template creators of Swagger Codegen decided to fork Swagger Codegen and maintain a community-driven version called "OpenAPI Generator". Please refer to the [Q&A](docs/qna.md) for more information.
|
OpenAPI Generator is a fork of [Swagger Codegen](https://github.com/swagger-api/swagger-codegen). In view of the issues with the Swagger Codegen 3.0.0 (beta) release and the disagreement on the project's direction, more than 40 top contributors and template creators of Swagger Codegen decided to fork Swagger Codegen and maintain a community-driven version called "OpenAPI Generator". Please refer to the [Q&A](docs/qna.md) for more information.
|
||||||
@@ -732,7 +763,7 @@ OpenAPI Generator is a fork of [Swagger Codegen](https://github.com/swagger-api/
|
|||||||
- [Daiki Matsudate](https://github.com/d-date)
|
- [Daiki Matsudate](https://github.com/d-date)
|
||||||
- [Daniel](https://github.com/Danielku15)
|
- [Daniel](https://github.com/Danielku15)
|
||||||
- [Emiliano Bonassi](https://github.com/emilianobonassi)
|
- [Emiliano Bonassi](https://github.com/emilianobonassi)
|
||||||
- [Erik Timmers](https://github.com/trenneman)
|
- [Erik Timmers](https://github.com/eriktim)
|
||||||
- [Esteban Marin](https://github.com/macjohnny)
|
- [Esteban Marin](https://github.com/macjohnny)
|
||||||
- [Gustavo Paz](https://github.com/gustavoapaz)
|
- [Gustavo Paz](https://github.com/gustavoapaz)
|
||||||
- [Javier Velilla](https://github.com/jvelilla)
|
- [Javier Velilla](https://github.com/jvelilla)
|
||||||
@@ -762,7 +793,7 @@ OpenAPI Generator is a fork of [Swagger Codegen](https://github.com/swagger-api/
|
|||||||
- [Vlad Frolov](https://github.com/frol)
|
- [Vlad Frolov](https://github.com/frol)
|
||||||
- [Vladimir Pouzanov](https://github.com/farcaller)
|
- [Vladimir Pouzanov](https://github.com/farcaller)
|
||||||
- [William Cheng](https://github.com/wing328)
|
- [William Cheng](https://github.com/wing328)
|
||||||
- [Xin Meng](https://github.com/xmeng1)
|
- [Xin Meng](https://github.com/xmeng1) [:heart:](https://www.patreon.com/user/overview?u=16435385)
|
||||||
- [Xu Hui Hui](https://github.com/xhh)
|
- [Xu Hui Hui](https://github.com/xhh)
|
||||||
- [antihax](https://github.com/antihax)
|
- [antihax](https://github.com/antihax)
|
||||||
- [beatcracker](https://github.com/beatcracker)
|
- [beatcracker](https://github.com/beatcracker)
|
||||||
@@ -771,6 +802,7 @@ OpenAPI Generator is a fork of [Swagger Codegen](https://github.com/swagger-api/
|
|||||||
- [jfiala](https://github.com/jfiala)
|
- [jfiala](https://github.com/jfiala)
|
||||||
- [lukoyanov](https://github.com/lukoyanov)
|
- [lukoyanov](https://github.com/lukoyanov)
|
||||||
|
|
||||||
|
:heart: = Link to support the contributor directly
|
||||||
|
|
||||||
## [7 - License](#table-of-contents)
|
## [7 - License](#table-of-contents)
|
||||||
-------
|
-------
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# for CI with appveyor.yml
|
# for CI with appveyor.yml
|
||||||
# Ref: http://www.yegor256.com/2015/01/10/windows-appveyor-maven.html
|
# Ref: http://www.yegor256.com/2015/01/10/windows-appveyor-maven.html
|
||||||
version: '{branch}-{build}'
|
version: '{branch}-{build}'
|
||||||
os: Windows Server 2012
|
image: Visual Studio 2017
|
||||||
hosts:
|
hosts:
|
||||||
petstore.swagger.io: 127.0.0.1
|
petstore.swagger.io: 127.0.0.1
|
||||||
install:
|
install:
|
||||||
@@ -23,6 +23,10 @@ install:
|
|||||||
- git clone https://github.com/wing328/swagger-samples
|
- git clone https://github.com/wing328/swagger-samples
|
||||||
- ps: Start-Process -FilePath 'C:\maven\apache-maven-3.2.5\bin\mvn' -ArgumentList 'jetty:run' -WorkingDirectory "$env:appveyor_build_folder\swagger-samples\java\java-jersey-jaxrs-ci"
|
- ps: Start-Process -FilePath 'C:\maven\apache-maven-3.2.5\bin\mvn' -ArgumentList 'jetty:run' -WorkingDirectory "$env:appveyor_build_folder\swagger-samples\java\java-jersey-jaxrs-ci"
|
||||||
build_script:
|
build_script:
|
||||||
|
- dotnet --info
|
||||||
|
# build C# API client (netcore)
|
||||||
|
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient\Org.OpenAPITools.sln
|
||||||
|
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClientCore\Org.OpenAPITools.sln
|
||||||
# build C# API client
|
# build C# API client
|
||||||
- nuget restore samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln
|
- nuget restore samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln
|
||||||
- msbuild samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
- msbuild samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||||
@@ -37,6 +41,9 @@ build_script:
|
|||||||
test_script:
|
test_script:
|
||||||
# restore test-related files
|
# restore test-related files
|
||||||
- copy /b/v/y CI\samples.ci\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- copy /b/v/y CI\samples.ci\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
|
# test c# API client (netcore)
|
||||||
|
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
|
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test c# API client
|
# test c# API client
|
||||||
- nunit-console samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\bin\Debug\Org.OpenAPITools.Test.dll --result=myresults.xml;format=AppVeyor
|
- nunit-console samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\bin\Debug\Org.OpenAPITools.Test.dll --result=myresults.xml;format=AppVeyor
|
||||||
# test c# API client (with PropertyChanged)
|
# test c# API client (with PropertyChanged)
|
||||||
|
|||||||
7
bin/csharp-netcore-petstore-all.sh
Executable file
7
bin/csharp-netcore-petstore-all.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# C# Petstore API client .NET Standard 2.0
|
||||||
|
./bin/csharp-netcore-petstore.sh
|
||||||
|
|
||||||
|
# C# Petstore API client .NET Core 2.0
|
||||||
|
./bin/csharp-netcore-petstore-netcore.sh
|
||||||
38
bin/csharp-netcore-petstore-netcore.sh
Executable file
38
bin/csharp-netcore-petstore-netcore.sh
Executable file
@@ -0,0 +1,38 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
outdir="samples/client/petstore/csharp-netcore/OpenAPIClientCore"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate -t modules/openapi-generator/src/main/resources/csharp-netcore/ -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp-netcore -o ${outdir} --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C},useCompareNetObjects=true,targetFramework=netcoreapp2.0 $@"
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|
||||||
|
# restore csproj file
|
||||||
|
echo "restore csproject file: CI/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj"
|
||||||
|
cp ./CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj ./samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/
|
||||||
|
|
||||||
37
bin/csharp-netcore-petstore.sh
Executable file
37
bin/csharp-netcore-petstore.sh
Executable file
@@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate -t modules/openapi-generator/src/main/resources/csharp-netcore/ -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp-netcore -o samples/client/petstore/csharp-netcore/OpenAPIClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C},useCompareNetObjects=true $@"
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|
||||||
|
# restore csproj file
|
||||||
|
echo "restore csproject file: CI/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj"
|
||||||
|
cp ./CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj ./samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/
|
||||||
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# C# Petstore API client (.NET 3.5)
|
|
||||||
./bin/csharp-refactor-petstore.sh
|
|
||||||
|
|
||||||
# C# Petstore API client with PropertyChanged
|
|
||||||
./bin/csharp-refactor-property-changed-petstore.sh
|
|
||||||
|
|
||||||
# C# Petstore API client (v5.0 for .net standarnd 1.3+)
|
|
||||||
./bin/csharp-refactor-petstore-net-standard.sh
|
|
||||||
|
|
||||||
# C# Petstore API client (.NET 4.0)
|
|
||||||
./bin/csharp-refactor-petstore-net-40.sh
|
|
||||||
|
|
||||||
# C# Petstore API client (.NET 3.5)
|
|
||||||
./bin/csharp-refactor-petstore-net-35.sh
|
|
||||||
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn -B clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp-refactor -o samples/client/petstore/csharp-refactor/OpenAPIClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
|
|
||||||
# restore csproj file
|
|
||||||
#echo "restore csproject file: CI/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj"
|
|
||||||
#cp ./CI/samples.ci/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj ./samples/client/petstore/csharp-refactor/OpenAPIClient/src/Org.OpenAPITools.Test/
|
|
||||||
|
|
||||||
@@ -35,6 +35,14 @@ java $JAVA_OPTS -jar $executable $ags
|
|||||||
ags="$@ generate -t modules/openapi-generator/src/main/resources/dart-jaguar -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g dart-jaguar -o samples/client/petstore/dart-jaguar/flutter_petstore/openapi -DhideGenerationTimestamp=true -DpubName=openapi"
|
ags="$@ generate -t modules/openapi-generator/src/main/resources/dart-jaguar -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g dart-jaguar -o samples/client/petstore/dart-jaguar/flutter_petstore/openapi -DhideGenerationTimestamp=true -DpubName=openapi"
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|
||||||
|
# Generate proto and put it to the flutter sample app
|
||||||
|
ags="$@ generate -t modules/openapi-generator/src/main/resources/dart-jaguar -i modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml -g dart-jaguar -o samples/client/petstore/dart-jaguar/flutter_proto_petstore/openapi -Dserialization=proto -DhideGenerationTimestamp=true -DpubName=openapi"
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|
||||||
|
# Generate proto and put it to the sample
|
||||||
|
ags="$@ generate -t modules/openapi-generator/src/main/resources/dart-jaguar -i modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml -g dart-jaguar -o samples/client/petstore/dart-jaguar/openapi_proto -Dserialization=proto -DhideGenerationTimestamp=true -DpubName=openapi"
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|
||||||
# There is a proposal to allow importing different libraries depending on the environment:
|
# There is a proposal to allow importing different libraries depending on the environment:
|
||||||
# https://github.com/munificent/dep-interface-libraries
|
# https://github.com/munificent/dep-interface-libraries
|
||||||
# When this is implemented there will only be one library.
|
# When this is implemented there will only be one library.
|
||||||
|
|||||||
@@ -25,10 +25,17 @@ then
|
|||||||
mvn -B clean package
|
mvn -B clean package
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
SPEC="modules/openapi-generator/src/test/resources/2_0/petstore.yaml"
|
||||||
|
GENERATOR="go-gin-server"
|
||||||
|
STUB_DIR="samples/server/petstore/go-gin-api-server"
|
||||||
|
|
||||||
|
echo "Removing files and folders under $STUB_DIR"
|
||||||
|
rm -rf $STUB_DIR
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/go-gin-server -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g go-gin-server -o samples/server/petstore/go-gin-api-server -DpackageName=petstoreserver --additional-properties hideGenerationTimestamp=true -Dservice $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/go-gin-server -i $SPEC -g $GENERATOR -o $STUB_DIR -DpackageName=petstoreserver --additional-properties hideGenerationTimestamp=true -Dservice $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
@@ -25,9 +25,16 @@ then
|
|||||||
mvn -B clean package
|
mvn -B clean package
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
SPEC="modules/openapi-generator/src/test/resources/2_0/petstore.yaml"
|
||||||
|
GENERATOR="go-server"
|
||||||
|
STUB_DIR="samples/server/petstore/go-api-server"
|
||||||
|
|
||||||
|
echo "Removing files and folders under $STUB_DIR"
|
||||||
|
rm -rf $STUB_DIR
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/go-server -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g go-server -o samples/server/petstore/go-api-server -DpackageName=petstoreserver --additional-properties hideGenerationTimestamp=true -Dservice $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/go-server -i $SPEC -g $GENERATOR -o $STUB_DIR -DpackageName=petstoreserver --additional-properties hideGenerationTimestamp=true -Dservice $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -25,11 +25,15 @@ then
|
|||||||
mvn -B clean package
|
mvn -B clean package
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Removing files and folders under samples/client/petstore/go/go-petstore-withXml"
|
SPEC="modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml"
|
||||||
rm -rf samples/client/petstore/go/go-petstore-withXml
|
GENERATOR="go"
|
||||||
|
STUB_DIR="samples/client/petstore/go/go-petstore-withXml"
|
||||||
|
|
||||||
|
echo "Removing files and folders under $STUB_DIR"
|
||||||
|
rm -rf $STUB_DIR
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/go -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g go -o samples/client/petstore/go/go-petstore-withXml -DpackageName=petstore,withXml=true,withGoCodegenComment=true $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/go -i $SPEC -g $GENERATOR -o $STUB_DIR -DpackageName=petstore,withXml=true,withGoCodegenComment=true $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -25,11 +25,15 @@ then
|
|||||||
mvn -B clean package
|
mvn -B clean package
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Removing files and folders under samples/client/petstore/go/go-petstore"
|
SPEC="modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml"
|
||||||
rm -rf samples/client/petstore/go/go-petstore
|
GENERATOR="go"
|
||||||
|
STUB_DIR="samples/client/petstore/go/go-petstore"
|
||||||
|
|
||||||
|
echo "Removing files and folders under $STUB_DIR"
|
||||||
|
rm -rf $STUB_DIR
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/go -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g go -o samples/client/petstore/go/go-petstore -DpackageName=petstore $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/go -i $SPEC -g $GENERATOR -o $STUB_DIR -DpackageName=petstore $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
32
bin/graphql-nodejs-express-server.sh
Executable file
32
bin/graphql-nodejs-express-server.sh
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties $@"
|
||||||
|
ags="generate -t modules/openapi-generator/src/main/resources/graphql-nodejs-express-server -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g graphql-nodejs-express-server -o samples/server/petstore/graphql-nodejs-express-server -DpackageName=petstore $@"
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn -B clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties $@"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/graphql-server -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g graphql-server -o samples/server/petstore/graphql-server -DpackageName=petstore $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -17,3 +17,5 @@
|
|||||||
./bin/jaxrs-spec-petstore-server-interface.sh
|
./bin/jaxrs-spec-petstore-server-interface.sh
|
||||||
./bin/jaxrs-spec-petstore-server.sh
|
./bin/jaxrs-spec-petstore-server.sh
|
||||||
./bin/jaxrs-usetags-petstore-server.sh
|
./bin/jaxrs-usetags-petstore-server.sh
|
||||||
|
|
||||||
|
echo " Please run ./bin/jaxrs-cxf-petstore-server-test-data.sh manually instead"
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/MSF4J -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java-msf4j -o samples/server/petstore/java-msf4j/ -DhideGenerationTimestamp=true --additional-properties artifactId=swagger-msf4j-server $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/MSF4J -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java-msf4j -o samples/server/petstore/java-msf4j/ -DhideGenerationTimestamp=true --additional-properties artifactId=java-msf4j-server $@"
|
||||||
|
|
||||||
echo "Removing files and folders under samples/server/petstore/java-msf4j/src/main"
|
echo "Removing files and folders under samples/server/petstore/java-msf4j/src/main"
|
||||||
rm -rf samples/server/petstore/java-msf4j/src/main
|
rm -rf samples/server/petstore/java-msf4j/src/main
|
||||||
|
|||||||
@@ -34,9 +34,9 @@ find samples/client/petstore/java/okhttp-gson -maxdepth 1 -type f ! -name "READM
|
|||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|
||||||
# copy additional manually written unit-tests
|
# copy additional manually written unit-tests
|
||||||
mkdir samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client
|
mkdir -p samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client
|
||||||
mkdir samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/auth
|
mkdir -p samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/auth
|
||||||
mkdir samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model
|
mkdir -p samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model
|
||||||
|
|
||||||
cp CI/samples.ci/client/petstore/java/test-manual/common/StringUtilTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/StringUtilTest.java
|
cp CI/samples.ci/client/petstore/java/test-manual/common/StringUtilTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/StringUtilTest.java
|
||||||
cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/ApiClientTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ApiClientTest.java
|
cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/ApiClientTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ApiClientTest.java
|
||||||
@@ -44,4 +44,7 @@ cp CI/samples.ci/client/petstore/java/test-manual/common/ConfigurationTest.java
|
|||||||
cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/auth/ApiKeyAuthTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/auth/ApiKeyAuthTest.java
|
cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/auth/ApiKeyAuthTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/auth/ApiKeyAuthTest.java
|
||||||
cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/auth/HttpBasicAuthTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/auth/HttpBasicAuthTest.java
|
cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/auth/HttpBasicAuthTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/auth/HttpBasicAuthTest.java
|
||||||
cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/model/EnumValueTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumValueTest.java
|
cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/model/EnumValueTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumValueTest.java
|
||||||
|
cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/model/PetTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java
|
||||||
|
cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/model/ArrayOfArrayOfNumberOnlyTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java
|
||||||
cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/JSONTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java
|
cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/JSONTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java
|
||||||
|
cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/api/PetApiTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/PetApiTest.java
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
"library": "vertx",
|
"library": "vertx",
|
||||||
|
"dateLibrary": "java8",
|
||||||
"artifactId": "petstore-vertx"
|
"artifactId": "petstore-vertx"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ fi
|
|||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/Javascript/es6 \
|
ags="generate -t modules/openapi-generator/src/main/resources/Javascript/es6 \
|
||||||
-i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g javascript \
|
-i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g javascript \
|
||||||
-o samples/client/petstore/javascript-es6 \
|
-o samples/client/petstore/javascript-es6 $@"
|
||||||
--additional-properties useES6=true $@"
|
|
||||||
|
|
||||||
java -DappName=PetstoreClient $JAVA_OPTS -jar $executable $ags
|
java -DappName=PetstoreClient $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
32
bin/jaxrs-cxf-petstore-server-test-data.sh
Executable file
32
bin/jaxrs-cxf-petstore-server-test-data.sh
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate --artifact-id cxf-test-data -t modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-ext -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-cxf-extended -o samples/server/petstore/jaxrs-cxf-test-data -DhideGenerationTimestamp=true -DuseAnnotatedBasePath=true --generate-alias-as-model --additional-properties java8=true,generateSpringApplication=true,generateSpringBootApplication=true,generateOperationBody=true,loadTestDataFromFile=true $@"
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
@@ -26,7 +26,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties -DdebugSupportingFiles=true"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -t modules/openapi-generator/src/main/resources/kotlin-server -g kotlin-server --library=ktor -o samples/server/petstore/kotlin-server/ktor -DhideGenerationTimestamp=true $@"
|
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -t modules/openapi-generator/src/main/resources/kotlin-server -g kotlin-server --library=ktor -o samples/server/petstore/kotlin-server/ktor -DhideGenerationTimestamp=true $@"
|
||||||
|
|
||||||
java ${JAVA_OPTS} -jar ${executable} ${ags}
|
java ${JAVA_OPTS} -jar ${executable} ${ags}
|
||||||
|
|||||||
32
bin/nodejs-fastify-petstore-server.sh
Executable file
32
bin/nodejs-fastify-petstore-server.sh
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate -t modules/openapi-generator/src/main/resources/nodejs-fastify-server -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g nodejs-fastify-server -o samples/server/petstore/nodejs-fastify-server $@"
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
41
bin/openapi3/go-gin-petstore-server.sh
Executable file
41
bin/openapi3/go-gin-petstore-server.sh
Executable file
@@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
SPEC="modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml"
|
||||||
|
GENERATOR="go-gin-server"
|
||||||
|
STUB_DIR="samples/openapi3/server/petstore/go-gin-api-server"
|
||||||
|
|
||||||
|
echo "Removing files and folders under $STUB_DIR"
|
||||||
|
rm -rf $STUB_DIR
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
|
||||||
|
ags="generate -t modules/openapi-generator/src/main/resources/go-gin-server -i $SPEC -g $GENERATOR -o $STUB_DIR -DpackageName=petstoreserver --additional-properties hideGenerationTimestamp=true -Dservice $@"
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
#!/usr/bin/env bash
|
||||||
@@ -25,9 +25,16 @@ then
|
|||||||
mvn clean package
|
mvn clean package
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
SPEC="modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml"
|
||||||
|
GENERATOR="go-server"
|
||||||
|
STUB_DIR="samples/openapi3/server/petstore/go-api-server"
|
||||||
|
|
||||||
|
echo "Removing files and folders under $STUB_DIR"
|
||||||
|
rm -rf $STUB_DIR
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/go-server -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g go-server -o samples/server/petstore/go-api-server -DpackageName=petstoreserver --additional-properties hideGenerationTimestamp=true -Dservice $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/go-server -i $SPEC -g $GENERATOR -o $STUB_DIR -DpackageName=petstoreserver --additional-properties hideGenerationTimestamp=true -Dservice $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
39
bin/openapi3/go-petstore.sh
Executable file
39
bin/openapi3/go-petstore.sh
Executable file
@@ -0,0 +1,39 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
SPEC="modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml"
|
||||||
|
GENERATOR="go"
|
||||||
|
STUB_DIR="samples/openapi3/client/petstore/go/go-petstore"
|
||||||
|
|
||||||
|
echo "Removing files and folders under $STUB_DIR"
|
||||||
|
rm -rf $STUB_DIR
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate -t modules/openapi-generator/src/main/resources/go -i $SPEC -g $GENERATOR -o $STUB_DIR -DpackageName=petstore $@"
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
32
bin/openapi3/graphql-nodejs-express-server.sh
Executable file
32
bin/openapi3/graphql-nodejs-express-server.sh
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties $@"
|
||||||
|
ags="generate -t modules/openapi-generator/src/main/resources/graphql-nodejs-express-server -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g graphql-nodejs-express-server -o samples/server/petstore/graphql-nodejs-express-server -DpackageName=petstore $@"
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# Make sure that the working directory is the root dir
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
||||||
cd "${SCRIPT_DIR}/../"
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make sure that we are regenerating the sample by removing any existing target directory
|
|
||||||
TARGET_DIR="$SCRIPT_DIR/../../samples/server/petstore/graphql-server"
|
|
||||||
if [ -d "$TARGET_DIR" ]; then
|
|
||||||
rm -rf $TARGET_DIR
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="$SCRIPT_DIR/../../modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t $SCRIPT_DIR/../../modules/openapi-generator/src/main/resources/graphql-server -i $SCRIPT_DIR/../../modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g graphql-server -o $TARGET_DIR $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
34
bin/openapi3/javascript-es6-petstore.sh
Executable file
34
bin/openapi3/javascript-es6-petstore.sh
Executable file
@@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate -t modules/openapi-generator/src/main/resources/Javascript/es6 \
|
||||||
|
-i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g javascript \
|
||||||
|
-o samples/openapi3/client/petstore/javascript-es6 $@"
|
||||||
|
|
||||||
|
java -DappName=PetstoreClient $JAVA_OPTS -jar $executable $ags
|
||||||
35
bin/openapi3/kotlin-client-petstore.sh
Executable file
35
bin/openapi3/kotlin-client-petstore.sh
Executable file
@@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=$(ls -ld "$SCRIPT")
|
||||||
|
link=$(expr "$ls" : '.*-> \(.*\)$')
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=$(dirname "$SCRIPT")/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=$(dirname "$SCRIPT")/..
|
||||||
|
APP_DIR=$(cd "${APP_DIR}"; pwd)
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="$@ generate -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -t modules/openapi-generator/src/main/resources/kotlin-client -g kotlin --artifact-id kotlin-petstore-client -D dateLibrary=java8 -o samples/openapi3/client/petstore/kotlin $@"
|
||||||
|
|
||||||
|
echo "Cleaning previously generated files if any from samples/openapi3/client/petstore/kotlin"
|
||||||
|
rm -rf samples/openapi3/client/petstore/kotlin
|
||||||
|
|
||||||
|
echo "Generating Kotling client..."
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
@@ -28,6 +28,6 @@ fi
|
|||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
# complex module name used for testing
|
# complex module name used for testing
|
||||||
ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g perl -o samples/client/petstore/perl -DhideGenerationTimestamp=true $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/perl -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g perl -o samples/client/petstore/perl -DhideGenerationTimestamp=true $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
36
bin/openapi3/php-ze-ph-petstore-server.sh
Normal file
36
bin/openapi3/php-ze-ph-petstore-server.sh
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
input=modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
out_folder=samples/server/openapi3/petstore/php-ze-ph
|
||||||
|
resources=modules/openapi-generator/src/main/resources/ze-ph
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate -t $resources -i $input -g php-ze-ph -o $out_folder $@"
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
@@ -26,9 +26,25 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
input=modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
#ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g python-flask -o samples/server/petstore/flaskConnexion-python2 -DsupportPython2=true $@"
|
out_folder=samples/server/openapi3/petstore/python-flask-python2
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/flaskConnexion -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g python-flask -o samples/server/petstore/flaskConnexion-python2 -c bin/supportPython2.json -D service $@"
|
resources=modules/openapi-generator/src/main/resources/python-flask
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate -t $resources -i $input -g python-flask -o $out_folder -c bin/supportPython2.json -D service $@"
|
||||||
|
|
||||||
|
rm -rf $out_folder/.openapi*
|
||||||
|
rm -rf $out_folder/openapi_server
|
||||||
|
rm $out_folder/.dockerignore
|
||||||
|
rm $out_folder/.gitignore
|
||||||
|
rm $out_folder/.travis.yml
|
||||||
|
rm $out_folder/Dockerfile
|
||||||
|
rm $out_folder/git_push.sh
|
||||||
|
rm $out_folder/README.md
|
||||||
|
rm $out_folder/requirements.txt
|
||||||
|
rm $out_folder/setup.py
|
||||||
|
rm $out_folder/test-requirements.txt
|
||||||
|
rm $out_folder/tox.ini
|
||||||
|
|
||||||
rm -rf samples/server/petstore/flaskConnexion-python2/*
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -26,8 +26,25 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
input=modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/flaskConnexion -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g python-flask -o samples/server/petstore/flaskConnexion -Dservice $@"
|
out_folder=samples/server/openapi3/petstore/python-flask
|
||||||
|
resources=modules/openapi-generator/src/main/resources/python-flask
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate -t $resources -i $input -g python-flask -o $out_folder -Dservice $@"
|
||||||
|
|
||||||
|
rm -rf $out_folder/.openapi*
|
||||||
|
rm -rf $out_folder/openapi_server
|
||||||
|
rm $out_folder/.dockerignore
|
||||||
|
rm $out_folder/.gitignore
|
||||||
|
rm $out_folder/.travis.yml
|
||||||
|
rm $out_folder/Dockerfile
|
||||||
|
rm $out_folder/git_push.sh
|
||||||
|
rm $out_folder/README.md
|
||||||
|
rm $out_folder/requirements.txt
|
||||||
|
rm $out_folder/setup.py
|
||||||
|
rm $out_folder/test-requirements.txt
|
||||||
|
rm $out_folder/tox.ini
|
||||||
|
|
||||||
rm -rf samples/server/petstore/flaskConnexion/*
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -27,6 +27,6 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/python -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g python -o samples/client/petstore-security-test/python -DpackageName=petstore_api $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/python -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g python -o samples/openapi3/client/petstore/python/ -DpackageName=petstore_api $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
@@ -30,6 +30,12 @@ echo "purge ruby petstore lib, docs folder"
|
|||||||
rm -Rf samples/openapi3/client/petstore/ruby/lib
|
rm -Rf samples/openapi3/client/petstore/ruby/lib
|
||||||
rm -Rf samples/openapi3/client/petstore/ruby/docs
|
rm -Rf samples/openapi3/client/petstore/ruby/docs
|
||||||
|
|
||||||
|
# purge test files other than integration test
|
||||||
|
# NOTE: spec/custom/*.rb and spec/petstore_helper.rb are not generated files
|
||||||
|
echo "purge ruby petstore spec"
|
||||||
|
find samples/openapi3/client/petstore/ruby/spec -type d -not -name spec -not -name custom | xargs rm -Rf
|
||||||
|
find samples/openapi3/client/petstore/ruby/spec -type f -not -name petstore_helper.rb -not -iwholename '*/spec/custom/*' | xargs rm -Rf
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/ruby-client -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g ruby -c bin/ruby-petstore.json -o samples/openapi3/client/petstore/ruby -DskipFormModel=true $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/ruby-client -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g ruby -c bin/ruby-petstore.json -o samples/openapi3/client/petstore/ruby -DskipFormModel=true $@"
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# cleanup tests
|
|
||||||
TEST_DIR="./samples/client/petstore-security-test/php/OpenAPIToolsClient-php/test"
|
|
||||||
if [ -d $TEST_DIR ]; then
|
|
||||||
rm -rf $TEST_DIR
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/php -i modules/openapi-generator/src/test/resources/3_0/petstore-security-test.yaml -g php -o samples/client/petstore-security-test/php $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
10
bin/openapi3/windows/php-petstore.bat
Normal file
10
bin/openapi3/windows/php-petstore.bat
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar
|
||||||
|
|
||||||
|
If Not Exist %executable% (
|
||||||
|
mvn clean package
|
||||||
|
)
|
||||||
|
|
||||||
|
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
|
||||||
|
set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing.yaml -g php -o samples\openapi3\client\petstore\php\OpenAPIClient-php
|
||||||
|
|
||||||
|
java %JAVA_OPTS% -jar %executable% %ags%
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/ze-ph -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g php-ze-ph -o samples/server/petstore/ze-ph $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -25,8 +25,12 @@ then
|
|||||||
mvn -B clean package
|
mvn -B clean package
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
input=modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
out_folder=samples/server/petstore/php-ze-ph
|
||||||
|
resources=modules/openapi-generator/src/main/resources/ze-ph
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/ze-ph -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g php-ze-ph -o samples/server/petstore/php-ze-ph $@"
|
ags="generate -t $resources -i $input -g php-ze-ph -o $out_folder $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
./bin/python-flask-petstore.sh
|
|
||||||
./bin/python-flask-petstore-python2.sh
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn -B clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
#ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g python-flask -o samples/server/petstore/flaskConnexion-python2 -DsupportPython2=true $@"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/flaskConnexion -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g python-flask -o samples/server/petstore/flaskConnexion-python2 -c bin/supportPython2.json -D service $@"
|
|
||||||
|
|
||||||
rm -rf samples/server/petstore/flaskConnexion-python2/*
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn -B clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/flaskConnexion -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g python-flask -o samples/server/petstore/flaskConnexion -Dservice $@"
|
|
||||||
|
|
||||||
rm -rf samples/server/petstore/flaskConnexion/*
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
44
bin/python-server-aiohttp-petstore.sh
Executable file
44
bin/python-server-aiohttp-petstore.sh
Executable file
@@ -0,0 +1,44 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
generator=python-aiohttp
|
||||||
|
input=modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
||||||
|
out_folder=samples/server/petstore/$generator
|
||||||
|
resources=modules/openapi-generator/src/main/resources/$generator
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate -t $resources -i $input -g $generator -o $out_folder -Dservice $@"
|
||||||
|
|
||||||
|
rm -rf $out_folder/.openapi*
|
||||||
|
rm -rf $out_folder/openapi_server
|
||||||
|
rm -rf $out_folder/tests*
|
||||||
|
rm $out_folder/README.md
|
||||||
|
rm $out_folder/requirements.txt
|
||||||
|
rm $out_folder/test-requirements.txt
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
5
bin/python-server-all.sh
Executable file
5
bin/python-server-all.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
./bin/python-server-aiohttp-petstore.sh
|
||||||
|
./bin/python-server-flask-petstore.sh
|
||||||
|
./bin/python-server-flask-petstore-python2.sh
|
||||||
44
bin/python-server-blueplanet-petstore.sh
Executable file
44
bin/python-server-blueplanet-petstore.sh
Executable file
@@ -0,0 +1,44 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
generator=python-blueplanet
|
||||||
|
input=modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
||||||
|
out_folder=samples/server/petstore/$generator
|
||||||
|
resources=modules/openapi-generator/src/main/resources/$generator
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate -t $resources -i $input -g $generator -o $out_folder -Dservice $@"
|
||||||
|
|
||||||
|
rm -rf $out_folder/.openapi*
|
||||||
|
rm -rf $out_folder/openapi_server
|
||||||
|
rm -rf $out_folder/tests*
|
||||||
|
rm $out_folder/README.md
|
||||||
|
rm $out_folder/requirements.txt
|
||||||
|
rm $out_folder/test-requirements.txt
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
50
bin/python-server-flask-petstore-python2.sh
Executable file
50
bin/python-server-flask-petstore-python2.sh
Executable file
@@ -0,0 +1,50 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
generator=python-flask
|
||||||
|
input=modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
||||||
|
out_folder=samples/server/petstore/$generator-python2
|
||||||
|
resources=modules/openapi-generator/src/main/resources/$generator
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate -t $resources -i $input -g $generator -o $out_folder -c bin/supportPython2.json -D service $@"
|
||||||
|
|
||||||
|
rm -rf $out_folder/.openapi*
|
||||||
|
rm -rf $out_folder/openapi_server
|
||||||
|
rm $out_folder/.dockerignore
|
||||||
|
rm $out_folder/.gitignore
|
||||||
|
rm $out_folder/.travis.yml
|
||||||
|
rm $out_folder/Dockerfile
|
||||||
|
rm $out_folder/git_push.sh
|
||||||
|
rm $out_folder/README.md
|
||||||
|
rm $out_folder/requirements.txt
|
||||||
|
rm $out_folder/setup.py
|
||||||
|
rm $out_folder/test-requirements.txt
|
||||||
|
rm $out_folder/tox.ini
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
50
bin/python-server-flask-petstore.sh
Executable file
50
bin/python-server-flask-petstore.sh
Executable file
@@ -0,0 +1,50 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
generator=python-flask
|
||||||
|
input=modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
||||||
|
out_folder=samples/server/petstore/$generator
|
||||||
|
resources=modules/openapi-generator/src/main/resources/$generator
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate -t $resources -i $input -g $generator -o $out_folder -Dservice $@"
|
||||||
|
|
||||||
|
rm -rf $out_folder/.openapi*
|
||||||
|
rm -rf $out_folder/openapi_server
|
||||||
|
rm $out_folder/.dockerignore
|
||||||
|
rm $out_folder/.gitignore
|
||||||
|
rm $out_folder/.travis.yml
|
||||||
|
rm $out_folder/Dockerfile
|
||||||
|
rm $out_folder/git_push.sh
|
||||||
|
rm $out_folder/README.md
|
||||||
|
rm $out_folder/requirements.txt
|
||||||
|
rm $out_folder/setup.py
|
||||||
|
rm $out_folder/test-requirements.txt
|
||||||
|
rm $out_folder/tox.ini
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
@@ -25,6 +25,11 @@ then
|
|||||||
mvn -B clean package
|
mvn -B clean package
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "purge ruby petstore lib, docs, spec folder"
|
||||||
|
rm -Rf samples/client/petstore/ruby/lib
|
||||||
|
rm -Rf samples/client/petstore/ruby/docs
|
||||||
|
rm -Rf samples/client/petstore/ruby/spec
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/ruby-client -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g ruby -c bin/ruby-petstore.json -o samples/client/petstore/ruby $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/ruby-client -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g ruby -c bin/ruby-petstore.json -o samples/client/petstore/ruby $@"
|
||||||
|
|||||||
@@ -27,6 +27,6 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/scala-httpclient -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g scala-httpclient -o samples/client/petstore/scala-httpclient $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/scala-httpclient -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g scala-httpclient-deprecated -o samples/client/petstore/scala-httpclient $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
32
bin/scala-play-framework-petstore.sh
Executable file
32
bin/scala-play-framework-petstore.sh
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
echo "# START SCRIPT: $SCRIPT"
|
||||||
|
|
||||||
|
while [ -h "$SCRIPT" ] ; do
|
||||||
|
ls=`ls -ld "$SCRIPT"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
SCRIPT="$link"
|
||||||
|
else
|
||||||
|
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ ! -d "${APP_DIR}" ]; then
|
||||||
|
APP_DIR=`dirname "$SCRIPT"`/..
|
||||||
|
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||||
|
fi
|
||||||
|
|
||||||
|
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||||
|
|
||||||
|
if [ ! -f "$executable" ]
|
||||||
|
then
|
||||||
|
mvn -B clean package
|
||||||
|
fi
|
||||||
|
|
||||||
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate -t modules/openapi-generator/src/main/resources/scala-play-server -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g scala-play-server -o samples/server/petstore/scala-play-server $@"
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/cpp-qt5-client -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g cpp-qt5-client -o samples/client/petstore-security-test/cpp-qt5 $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g csharp -o samples/client/petstore-security-test/csharp/SwaggerClient --additional-properties packageGuid={8CE139DF-64BC-4591-85F8-8506C2B67514} $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/go -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g go -o samples/client/petstore-security-test/go $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g java -c bin/java-petstore-okhttp-gson.json -o samples/client/petstore-security-test/java/okhttp-gson -DhideGenerationTimestamp=true $@"
|
|
||||||
|
|
||||||
rm -rf samples/client/petstore-security-test/java/okhttp-gson/src/main
|
|
||||||
find samples/client/petstore-security-test/java/okhttp-gson -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g javascript-closure-angular -o samples/client/petstore-security-test/javascript-closure-angular $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/Javascript -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g javascript -o samples/client/petstore-security-test/javascript -DappName=PetstoreClient $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/lumen -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g php-lumen -o samples/server/petstore-security-test/lumen $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/mysql-schema -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g mysql-schema -o samples/schema/petstore-security-test/mysql $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/objc -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g objc -o samples/client/petstore-security-test/objc $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
# complex module name used for testing
|
|
||||||
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g perl -o samples/client/petstore-security-test/perl $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags --additional-properties moduleName=Something::Deep -o samples/client/petstore-security-test/perl/deep_module_test
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# cleanup tests
|
|
||||||
TEST_DIR="./samples/client/petstore-security-test/php/OpenAPIToolsClient-php/test"
|
|
||||||
if [ -d $TEST_DIR ]; then
|
|
||||||
rm -rf $TEST_DIR
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/php -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g php -o samples/client/petstore-security-test/php/OpenAPIClient-php $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/php-slim-server -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g php-slim -o samples/server/petstore-security-test/php-slim $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/ruby-client -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g ruby -c bin/ruby-petstore.json -o samples/client/petstore-security-test/ruby $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
#!/bin/bash -e
|
|
||||||
|
|
||||||
for SCRIPT in ./bin/security/*.sh
|
|
||||||
do
|
|
||||||
if [ -f $SCRIPT -a -x $SCRIPT ]
|
|
||||||
then
|
|
||||||
$SCRIPT
|
|
||||||
rc=$?
|
|
||||||
if [[ $rc != 0 ]]
|
|
||||||
then
|
|
||||||
echo "ERROR!! FAILED TO RUN $SCRIPT"
|
|
||||||
exit $rc;
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/scala-httpclient -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g scala-httpclient -o samples/client/petstore-security-test/scala-httpclient $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/php-silex -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g php-silex -o samples/server/petstore-security-test/silex/SwaggerServer $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/swift -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g swift2-deprecated -o samples/client/petstore-security-test/swift $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/typescript-angular -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g typescript-angular -o samples/client/petstore-security-test/typescript-angular $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g typescript-angular -o samples/client/petstore-security-test/typescript-angular2 $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/typescript-fetch -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g typescript-fetch -o samples/client/petstore-security-test/typescript-fetch $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/typescript-inversify -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g typescript-inversify -o samples/client/petstore-security-test/typescript-inversify $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
|
|
||||||
echo "Typescript jquery Petstore API client (default setting)"
|
|
||||||
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g typescript-jquery -o samples/client/petstore-security-test/typescript-jquery/default $@"
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
|
|
||||||
echo "Typescript jquery Petstore API client with npm setting"
|
|
||||||
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g typescript-jquery -c bin/typescript-petstore-npm.json -o samples/client/petstore-security-test/typescript-jquery/npm $@"
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SCRIPT="$0"
|
|
||||||
echo "# START SCRIPT: $SCRIPT"
|
|
||||||
|
|
||||||
while [ -h "$SCRIPT" ] ; do
|
|
||||||
ls=`ls -ld "$SCRIPT"`
|
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
|
||||||
SCRIPT="$link"
|
|
||||||
else
|
|
||||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d "${APP_DIR}" ]; then
|
|
||||||
APP_DIR=`dirname "$SCRIPT"`/..
|
|
||||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
|
||||||
fi
|
|
||||||
|
|
||||||
executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
|
||||||
|
|
||||||
if [ ! -f "$executable" ]
|
|
||||||
then
|
|
||||||
mvn clean package
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/typescript-node -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g typescript-node -o samples/client/petstore-security-test/typescript-node $@"
|
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar
|
|
||||||
|
|
||||||
If Not Exist %executable% (
|
|
||||||
mvn clean package
|
|
||||||
)
|
|
||||||
|
|
||||||
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
|
|
||||||
set ags=generate -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -g csharp -o samples/client/petstore-security-test/csharp/SwaggerClient --additional-properties packageGuid={8CE139DF-64BC-4591-85F8-8506C2B67514}
|
|
||||||
|
|
||||||
java %JAVA_OPTS% -jar %executable% %ags%
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar
|
|
||||||
|
|
||||||
If Not Exist %executable% (
|
|
||||||
mvn clean package
|
|
||||||
)
|
|
||||||
|
|
||||||
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
|
|
||||||
set ags=generate -t modules/openapi-generator/src/main/resources/cpp-qt5-client -i modules\openapi-generator\src\test\resources\2_0\petstore-security-test.yaml -g qt5cpp -o samples\client\petstore-security-test\qt5cpp
|
|
||||||
|
|
||||||
java %JAVA_OPTS% -jar %executable% %ags%
|
|
||||||
@@ -27,6 +27,6 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/swift3 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift3 -c ./bin/swift3-petstore-objcCompatible.json -o samples/client/petstore/swift3/objcCompatible $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/swift3 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift3-deprecated -c ./bin/swift3-petstore-objcCompatible.json -o samples/client/petstore/swift3/objcCompatible $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -27,6 +27,6 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/swift3 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift3 -c ./bin/swift3-petstore-promisekit.json -o samples/client/petstore/swift3/promisekit $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/swift3 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift3-deprecated -c ./bin/swift3-petstore-promisekit.json -o samples/client/petstore/swift3/promisekit $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -27,6 +27,6 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/swift3 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift3 -c ./bin/swift3-petstore-rxswift.json -o samples/client/petstore/swift3/rxswift $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/swift3 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift3-deprecated -c ./bin/swift3-petstore-rxswift.json -o samples/client/petstore/swift3/rxswift $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -27,6 +27,6 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/swift3 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift3 -c ./bin/swift3-petstore-unwraprequired.json -o samples/client/petstore/swift3/unwraprequired $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/swift3 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift3-deprecated -c ./bin/swift3-petstore-unwraprequired.json -o samples/client/petstore/swift3/unwraprequired $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
@@ -27,6 +27,6 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/swift3 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift3 -c ./bin/swift3-petstore.json -o samples/client/petstore/swift3/default $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/swift3 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift3-deprecated -c ./bin/swift3-petstore.json -o samples/client/petstore/swift3/default $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
|||||||
1
bin/typescript-axios-petstore-all.sh
Normal file → Executable file
1
bin/typescript-axios-petstore-all.sh
Normal file → Executable file
@@ -2,5 +2,6 @@
|
|||||||
|
|
||||||
./bin/typescript-axios-petstore-target-es6.sh
|
./bin/typescript-axios-petstore-target-es6.sh
|
||||||
./bin/typescript-axios-petstore-with-npm-version.sh
|
./bin/typescript-axios-petstore-with-npm-version.sh
|
||||||
|
./bin/typescript-axios-petstore-with-npm-version-and-separate-models-and-api.sh
|
||||||
./bin/typescript-axios-petstore-interfaces.sh
|
./bin/typescript-axios-petstore-interfaces.sh
|
||||||
./bin/typescript-axios-petstore.sh
|
./bin/typescript-axios-petstore.sh
|
||||||
|
|||||||
0
bin/typescript-axios-petstore-interfaces.sh
Normal file → Executable file
0
bin/typescript-axios-petstore-interfaces.sh
Normal file → Executable file
0
bin/typescript-axios-petstore-target-es6.json
Normal file → Executable file
0
bin/typescript-axios-petstore-target-es6.json
Normal file → Executable file
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user