Skip to content

Commit

Permalink
release/v0.2.0 (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
gneeri authored Sep 26, 2024
2 parents fea7e03 + d237846 commit fa033ba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

## [[0.2.0](https://github.com/hasura/ndc-open-api-lambda/releases/tag/v0.2.0)] 2024-09-26

- Several bugfixes in `functions.ts` codegen due to integration of new parsers ([#50](https://github.com/hasura/ndc-open-api-lambda/pull/50))

## [[0.1.5](https://github.com/hasura/ndc-open-api-lambda/releases/tag/v0.1.5)] 2024-09-23
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ supportedEnvironmentVariables:
commands:
update:
type: Dockerized
dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v0.1.5
dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v0.2.0
commandArgs: [ "update" ]
cliPlugin:
type: Docker
dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v0.1.5
dockerImage: ghcr.io/hasura/ndc-open-api-lambda:v0.2.0
dockerComposeWatch:
# Rebuild the container if a new package restore is required because package[-lock].json changed
- path: package.json
Expand Down
10 changes: 5 additions & 5 deletions docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ The Docker Container will output the generated files at `/etc/connector`. Please

```
# get command documentation/help
docker run --rm ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 update -h
docker run --rm ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update -h
# run the code generation (using env vars)
docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 update
docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update
# run the code generation (using CLI flags)
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 update --open-api ${url to open API document}
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update --open-api ${url to open API document}
# with baseUrl (using env vars)
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:v0.1.5 update
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:v0.2.0 update
# with baseUrl (using CLI flags)
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.1.5 update --open-api ${url to open API document} --base-url http://demoapi.com/
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.2.0 update --open-api ${url to open API document} --base-url http://demoapi.com/
```

## Build and Run
Expand Down
2 changes: 1 addition & 1 deletion src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as updateCmd from "./update";
import { exec, execSync } from "child_process";

export const program = new Command()
.version("0.1.5")
.version("0.2.0")
.description("OAS Connector CLI")
// .addCommand(initCmd.cmd) TODO: Enable when required by the CLI spec
.addCommand(updateCmd.cmd)
Expand Down

0 comments on commit fa033ba

Please sign in to comment.