Skip to content

Commit

Permalink
feat: upgrade generator and spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jrea committed Nov 4, 2022
1 parent 2b03db9 commit 10c9f9f
Show file tree
Hide file tree
Showing 11 changed files with 847 additions and 593 deletions.
2 changes: 1 addition & 1 deletion lib/nile/openapitools.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "5.4.0"
"version": "6.2.1"
}
}
2 changes: 1 addition & 1 deletion lib/nile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"build": "tsdx build && yarn build:types",
"prebuild": "yarn build:api:gen && ./scripts/api-cleaner.sh",
"build:types": "tsc -d --declarationDir dist --emitDeclarationOnly",
"build:api:gen": "yarn openapi-generator-cli generate --skip-validate-spec -t templates -i spec/api.yaml -g typescript-fetch --package-name @theniledev/js -o src/client --additional-properties=ngVersion=6.1.7,npmName=theniledev,supportsES6=true,npmVersion=6.9.0,withInterfaces=true,moduleName=Nile,typescriptThreePlus=true,projectName=@theniledev/js",
"build:api:gen": "yarn openapi-generator-cli generate --skip-validate-spec -t templates -i spec/api.yaml -g typescript-fetch --package-name @theniledev/js -o src/client --additional-properties=withoutRuntimeChecks=true,ngVersion=6.1.7,npmName=theniledev,supportsES6=true,npmVersion=6.9.0,withInterfaces=true,moduleName=Nile,typescriptThreePlus=true,projectName=@theniledev/js",
"generate-api-docs": "yarn typedoc --out docs/api --plugin typedoc-plugin-markdown --theme markdown --disableSources --excludeProtected --excludePrivate --excludeNotDocumented --hideBreadcrumbs true --hideInPageTOC true ./src/index.ts",
"generate-event-docs": "yarn typedoc --out docs/event --plugin typedoc-plugin-markdown --theme markdown --disableSources --excludeProtected --excludePrivate --excludeNotDocumented --hideBreadcrumbs true --hideInPageTOC true ./src/EventsApi.ts",
"generate-nile-docs": "yarn typedoc --out docs/nile --plugin typedoc-plugin-markdown --theme markdown --disableSources --excludeProtected --excludePrivate --excludeNotDocumented --hideBreadcrumbs true --hideInPageTOC true ./src/Nile.ts",
Expand Down
2 changes: 1 addition & 1 deletion lib/nile/scripts/api-cleaner.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

# make workspace optional (hacky)
sed -i -e '2264s/required: true/required: false/' ./spec/api.yaml
sed -i -e '2459s/required: true/required: false/' ./spec/api.yaml

0 comments on commit 10c9f9f

Please sign in to comment.