You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -164,8 +166,8 @@ See also [online generators](#online-generators)
164
166
The Swagger Generator image provides a ready to use web application (swagger-generator) providing code generation services.
165
167
166
168
Image accepts the following env variables:
167
-
JAVA_MEM e.g. 1024m
168
169
170
+
-`JAVA_MEM` e.g. `1024m`
169
171
-`HTTP_PORT` e.g. `8080`
170
172
-`HIDDEN_OPTIONS_PATH` (alternative to `HIDDEN_OPTIONS`): useful if attaching a volume containing a `hiddenOptions.yaml` file definining which languages to hide. e.g. `/data/hiddenOptions.yaml`
171
173
-`HIDDEN_OPTIONS` (alternative to `HIDDEN_OPTIONS_PATH`): allows to pass hidden options as an env variable, in the format `{category}:{language},{language},{language}|{category}:{language},{language},{language}`
This docker image supports custom generators by dropping the generator jar into `/jetty_home/lib/ext` directory (typically via a docker volume); e.g having on host `/my/custom/coolgenerator.jar` and `/my/custom/weirdgenerator.jar` the following would have them added to generator service generators:
@@ -694,7 +698,7 @@ To customize the SDK, you can specify language specific options with the follow
694
698
```
695
699
in which the `options``additionalProperties` for a language can be obtained by submitting a `GET` request to `https://generator3.swagger.io/api/options?language={language}&version={codegenVersion}`:
696
700
697
-
For example, `curlhttps://generator3.swagger.io/api/options?language=java&version=V3` returns (truncated output):
701
+
For example, `curl https://generator3.swagger.io/api/options?language=java&version=V3` returns (truncated output):
698
702
699
703
```json
700
704
{
@@ -739,28 +743,6 @@ Instead of using `specURL` with an URL to the OpenAPI/Swagger spec, one can incl
- `HIDDEN_OPTIONS_PATH` (alternative to `HIDDEN_OPTIONS`): useful if attaching a volume containing a `hiddenOptions.yaml` file definining which languages to hide. e.g. `/data/hiddenOptions.yaml`
750
-
- `HIDDEN_OPTIONS` (alternative to `HIDDEN_OPTIONS_PATH`): allows to pass hidden options as an env variable, in the format `{category}:{language},{language},{language}|{category}:{language},{language},{language}`
751
-
e.g. `servers:foo,bar|clientsV3:wtf,isthis` where `category` can be `clients`, `servers`, `clientsV3`, `serversV3`
0 commit comments