Skip to content

Commit

Permalink
Merge branch 'cdklabs:main' into rds-query
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheungamz authored Jan 10, 2025
2 parents c0a0aa7 + f6efde5 commit eeec756
Show file tree
Hide file tree
Showing 8 changed files with 184 additions and 114 deletions.
3 changes: 2 additions & 1 deletion .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ export const project = new cdk.JsiiProject({
jestVersion: '29',
},
srcdir: 'lib',
bundledDeps: ['jsonschema', 'semver'],
bundledDeps: [
// restricting to minor 4 because of https://github.com/tdegrunt/jsonschema/issues/405
// which breaks our canaries on node 16.
'jsonschema@~1.4.1',
'semver',
],
description: 'Cloud Assembly Schema',
devDeps: ['@types/semver', 'mock-fs', 'typescript-json-schema', 'tsx'],
gitignore: ['.DS_Store', '**/*.d.ts', '**/*.js'],
Expand Down
12 changes: 11 additions & 1 deletion lib/cloud-assembly/metadata-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,14 +260,24 @@ export type LogicalIdMetadataEntry = string;
*/
export type StackTagsMetadataEntry = Tag[];

/**
* Any other type of metadata entry
*
* This could probably be changed to `any`, but it's safer not
* to do so right now.
* See https://github.com/cdklabs/cloud-assembly-schema/pull/121.
*/
export type PrimitiveType = boolean | number | string;

/**
* Union type for all metadata entries that might exist in the manifest.
*/
export type MetadataEntryData =
| AssetMetadataEntry
| LogMessageMetadataEntry
| LogicalIdMetadataEntry
| StackTagsMetadataEntry;
| StackTagsMetadataEntry
| PrimitiveType;

/**
* Type of artifact metadata entry.
Expand Down
8 changes: 4 additions & 4 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion schema/cloud-assembly.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@
}
},
{
"type": "string"
"type": [
"string",
"number",
"boolean"
]
},
{
"description": "Free form data."
Expand Down
2 changes: 1 addition & 1 deletion schema/version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"schemaHash": "f0ccc3212331af8a1c75830878d218fd667e5957063831be3b5bfd803b25f0cc",
"schemaHash": "bf762e5da559c685e06892ef65fdfc33d1c4bd53d4eb07d4a326d476ac58ae25",
"revision": 39
}
Loading

0 comments on commit eeec756

Please sign in to comment.