-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmanifest.jsonnet
126 lines (123 loc) · 3.69 KB
/
manifest.jsonnet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
local meta = {
clientName: 'geoprox-client',
clientVersion: '0.5.0',
clientRepo: 'https://github.com/ezrasingh/geoprox/contrib/client-sdk',
clientDescription: 'An HTTP client library for interacting with the Geoprox search engine',
homePage: 'https://github.com/ezrasingh/geoprox/',
};
local snakeCase(label) = std.strReplace(label, '-', '_');
/**
OpenAPI generator config can be found here:
https://openapi-generator.tech/docs/generators/
*/
{
'csharp.yaml': std.manifestYamlDoc(
{
packageName: 'GeoproxClient',
packageVersion: meta.clientVersion,
netCoreProjectFile: true,
},
),
'dart.yaml': std.manifestYamlDoc(
{
pubName: snakeCase(meta.clientName),
pubLibrary: snakeCase(meta.clientName) + '.api',
pubRepository: meta.clientRepo + '/dart/',
pubDescription: meta.clientDescription,
pubVersion: meta.clientVersion,
pubHomepage: meta.homePage,
},
),
'dart-dio.yaml': std.manifestYamlDoc(
{
pubName: snakeCase(meta.clientName) + '_dio',
pubLibrary: snakeCase(meta.clientName) + '_dio.api',
pubRepository: meta.clientRepo + '/dart-dio/',
pubDescription: meta.clientDescription,
pubVersion: meta.clientVersion,
pubHomepage: meta.homePage,
},
),
'elixir.yaml': std.manifestYamlDoc(
{
packageName: snakeCase(meta.clientName),
},
),
'go.yaml': std.manifestYamlDoc(
{
packageName: snakeCase(meta.clientName),
packageVersion: meta.clientVersion,
},
),
'groovy.yaml': std.manifestYamlDoc(
{
artifactId: meta.clientName + '-groovy',
artifactVersion: meta.clientVersion,
groupId: 'org.geoprox.groovy',
apiPackage: 'org.geoprox.groovy.client',
invokerPackage: 'org.geoprox.groovy.client',
modelPackage: 'org.geoprox.groovy.client.model',
developerOrganizationUrl: meta.homePage,
scmUrl: meta.clientRepo + '/groovy/',
},
),
'kotlin.yaml': std.manifestYamlDoc(
{
artifactId: meta.clientName,
artifactVersion: meta.clientVersion,
groupId: 'org.geoprox',
packageName: 'org.geoprox.client',
},
),
'php.yaml': std.manifestYamlDoc(
{
packageName: 'GeoproxClient',
composerPackageName: meta.clientName,
artifactVersion: meta.clientVersion,
artifactUrl: meta.clientRepo + '/php/',
developerOrganizationUrl: meta.homePage,
},
),
'python.yaml': std.manifestYamlDoc(
{
packageName: snakeCase(meta.clientName),
packageVersion: meta.clientVersion,
packageUrl: meta.clientRepo + '/python/',
projectName: meta.clientName,
},
),
'ruby.yaml': std.manifestYamlDoc(
{
gemName: snakeCase(meta.clientName),
gemVersion: meta.clientVersion,
gemHomepage: meta.clientRepo + '/ruby/',
},
),
'rust.yaml': std.manifestYamlDoc(
{
packageName: meta.clientName,
packageVersion: meta.clientVersion,
hideGenerationTimestamp: false,
},
),
'typescript-axios.yaml': std.manifestYamlDoc({
npmName: meta.clientName + '-ts-axios',
npmVersion: meta.clientVersion,
npmRepository: meta.clientRepo + '/typescript-axios/',
}),
'typescript-fetch.yaml': std.manifestYamlDoc({
npmName: meta.clientName + '-ts-fetch',
npmVersion: meta.clientVersion,
npmRepository: meta.clientRepo + '/typescript-fetch/',
}),
'typescript-node.yaml': std.manifestYamlDoc({
npmName: meta.clientName + '-ts-node',
npmVersion: meta.clientVersion,
npmRepository: meta.clientRepo + '/typescript-node/',
}),
'typescript-rxjs.yaml': std.manifestYamlDoc({
npmName: meta.clientName + '-ts-rxjs',
npmVersion: meta.clientVersion,
npmRepository: meta.clientRepo + '/typescript-rxjs/',
}),
}