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
Copy file name to clipboardExpand all lines: README.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,6 @@ files and convert.
19
19
-directory: folder where swagger files live. default is swagger folder in repository.
20
20
<br>
21
21
-encoding: backend encoding for whole endpoints. default is "json".
22
-
<br>
23
-
-global-timeout: sets global timeout, default is 3000ms, if there is a `x-timeout` attribute in any of the swagger files
24
-
this will be overwritten.
25
22
26
23
### Usage
27
24
@@ -57,9 +54,11 @@ configuration file.
57
54
| LOG_PREFIX | Log prefix for filtering |`string`|`[KRAKEND]`| no |
58
55
| LOG_SYSLOG | Enable syslog |`bool`|`true`| no |
59
56
| LOG_STDOUT | Enable stdout |`bool`|`true`| no |
60
-
| ENABLE_CORS | Enable CORS plugin for KrakenD |`bol`|`false`| no |
57
+
| ENABLE_CORS | Enable CORS plugin for KrakenD |`bool`|`false`| no |
61
58
| ALLOWED_ORIGINS | Comma seperated allowed origins, it will be used when ENABLE_CORS is true |`string`|`*`| no |
62
59
| ALLOWED_METHODS | Comma seperated allowed methods, it will be used when ENABLE_CORS is true |`string`|`GET,HEAD,POST,PUT,DELETE,CONNECT,OPTIONS,TRACE,PATCH`| no |
60
+
| GLOBAL_TIMEOUT | Sets global timeout across all endpoints |`string`|`3000ms`| no |
61
+
| ENCODING | Sets default encoding. Values are json, safejson, xml, rss, string, no-op |`string`|`json`| no |
Copy file name to clipboardExpand all lines: swagger/pet-store.json
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
{
2
2
"openapi": "3.0.2",
3
-
"x-timeout": "30000ms",
4
3
"info": {
5
4
"title": "Swagger Petstore - OpenAPI 3.0",
6
5
"description": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!\nYou can now help us improve the API whether it's by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)",
0 commit comments