Skip to content

Commit a33cf57

Browse files
authored
Merge pull request codemonger-io/codemonger#2 from kikuomax/fix-params-schema
Fix params schema
2 parents d98fe71 + cd2fdb9 commit a33cf57

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

README.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
このレポジトリを依存関係(`dependencies`)に追加してください。
2222

2323
```sh
24-
npm install https://github.com/codemonger-io/cdk-rest-api-with-spec.git#v0.1.0
24+
npm install https://github.com/codemonger-io/cdk-rest-api-with-spec.git#v0.1.1
2525
```
2626

2727
このライブラリはCDK v2プロジェクトで使用することを想定しており、以下のモジュールは`dependencies`ではなく`peerDependencies`に含んでいます。

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This library is implemented for the CDK **version 2** (CDK v2) and does not work
2121
Please add this repository to your dependencies.
2222

2323
```sh
24-
npm install https://github.com/codemonger-io/cdk-rest-api-with-spec.git#v0.1.0
24+
npm install https://github.com/codemonger-io/cdk-rest-api-with-spec.git#v0.1.1
2525
```
2626

2727
This library is supposed to be used in a CDK v2 project, so it does not include the following modules in the `dependencies` but does in the `peerDependencies`.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cdk-rest-api-with-spec",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Describe Amazon API Gateway and OpenAPI at once with CDK",
55
"main": "./dist/index.js",
66
"typings": "./dist/index.d.ts",

src/rest-api-with-spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,9 @@ function translateRequestParameters(
524524
name: parsedKey.name,
525525
in: parsedKey.location,
526526
required,
527+
schema: {
528+
type: 'string',
529+
},
527530
});
528531
}
529532
}

0 commit comments

Comments
 (0)