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
- Freeze `ndc-nodejs-lambda` to `v1.15.0` ([#100](https://github.com/hasura/ndc-open-api-lambda/pull/100))
@@ -75,7 +81,7 @@
75
81
76
82
- Add compatibilty for Windows Powershell and Command Prompt. ([#51](https://github.com/hasura/ndc-open-api-lambda/pull/51))
77
83
78
-
- Use `hasuraSdk.JSONValue` as the type for `Record<>` and `object`. Also, make APIs that don't have a return type return `hasuraSdk.JSONValue` instead of `void`(39)[https://github.com/hasura/ndc-open-api-lambda/pull/39]
84
+
- Use `hasuraSdk.JSONValue` as the type for `Record<>` and `object`. Also, make APIs that don't have a return type return `hasuraSdk.JSONValue` instead of `void`[39](https://github.com/hasura/ndc-open-api-lambda/pull/39)
- Added [Prettier Code Formatting](https://prettier.io/docs/en/api.html) to the generated `functions.ts` file
95
101
- Added `--ndc-lambda-sdk` flag and corresponding environment variable `NDC_LAMBDA_SDK_VERSION` that can be used to set the preferred version of NDC Lambda SDK to be used
96
-
- Return api errors that are not code 500 as `hasuraSdk.UnprocessableContent`(#14)[https://github.com/hasura/ndc-open-api-lambda/pull/14]
102
+
- Return api errors that are not code 500 as `hasuraSdk.UnprocessableContent`[#14](https://github.com/hasura/ndc-open-api-lambda/pull/14)
| NDC_OAS_DOCUMENT_URI | The URI to your Open API Document. If you're using a file instead of a HTTP link, please ensure that it is named `swagger.json` and is present in the root directory of the volume being mounted to `/etc/connector`| false |https://raw.githubusercontent.com/swagger-api/swagger-petstore/master/src/main/resources/openapi.yaml|
10
-
| NDC_OAS_BASE_URL | The base URL of your API. | false |http://my-awesome-webapp.com/v1/|
9
+
| NDC_OAS_DOCUMENT_URI | The URI to your Open API Document. If you're using a file instead of a HTTP link, please ensure that it is named `swagger.json` and is present in the root directory of the volume being mounted to `/etc/connector`| false |<https://raw.githubusercontent.com/swagger-api/swagger-petstore/master/src/main/resources/openapi.yaml>|
10
+
| NDC_OAS_BASE_URL | The base URL of your API. | false |<http://my-awesome-webapp.com/v1/>|
11
11
| NDC_OAS_FILE_OVERWRITE | A Boolean flag to allow previously generated files to be over-written. Defaults to `false`. | false ||
12
12
| HASURA_PLUGIN_LOG_LEVEL | The log level. Possible values: `trace`, `debug`, `info`, `warn`, `error`, `fatal`, `panic`. Defaults to `info`| false | info |
13
13
| NDC_OAS_LAMBDA_PRETTY_LOGS | A Boolean flag to print human readable logs instead of JSON. Defaults to `false`| false | true |
@@ -133,19 +133,19 @@ The Docker Container will output the generated files at `/etc/connector`. Please
133
133
134
134
```bash
135
135
# get command documentation/help
136
-
docker run --rm ghcr.io/hasura/ndc-open-api-lambda:v1.7.1 update -h
136
+
docker run --rm ghcr.io/hasura/ndc-open-api-lambda:v1.8.0 update -h
137
137
138
138
# run the code generation (using env vars)
139
-
docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} ghcr.io/hasura/ndc-open-api-lambda:v1.7.1 update
139
+
docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} ghcr.io/hasura/ndc-open-api-lambda:v1.8.0 update
140
140
141
141
# run the code generation (using CLI flags)
142
-
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v1.7.1 update --open-api ${url to open API document}
142
+
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v1.8.0 update --open-api ${url to open API document}
143
143
144
144
# with baseUrl (using env vars)
145
-
docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} -e NDC_OAS_BASE_URL=http://demoapi.com/ ghcr.io/hasura/ndc-open-api-lambda:v1.7.1 update
145
+
docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} -e NDC_OAS_BASE_URL=http://demoapi.com/ ghcr.io/hasura/ndc-open-api-lambda:v1.8.0 update
146
146
147
147
# with baseUrl (using CLI flags)
148
-
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v1.7.1 update --open-api ${url to open API document} --base-url http://demoapi.com/
148
+
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v1.8.0 update --open-api ${url to open API document} --base-url http://demoapi.com/
0 commit comments