Skip to content

Commit 5e087e5

Browse files
author
Madhav Murthy
authored
feat(apigateway): additionalProperties in RestApi Model supports JsonSchema type (#8848)
As per: https://json-schema.org/understanding-json-schema/reference/object.html, the additionalProperties can be boolean or JsonSchema. JsonSchema was previously supported by APIGateway but It was removed for some reason here: 73a1de1. fixes #8069 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent b0f359e commit 5e087e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@aws-cdk/aws-apigateway/lib/json-schema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface JsonSchema {
6363
readonly minProperties?: number;
6464
readonly required?: string[];
6565
readonly properties?: { [name: string]: JsonSchema };
66-
readonly additionalProperties?: boolean;
66+
readonly additionalProperties?: JsonSchema | boolean;
6767
readonly patternProperties?: { [name: string]: JsonSchema };
6868
readonly dependencies?: { [name: string]: JsonSchema | string[] };
6969
readonly propertyNames?: JsonSchema;

0 commit comments

Comments
 (0)