Skip to content

Commit c3a81d0

Browse files
committed
revert to approach 1
1 parent 32d8d73 commit c3a81d0

21 files changed

+648051
-695313
lines changed

bin/add_docs_cfn_schema.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ def main() -> None:
3838
if not re.match(r"^\w+::\w+::\w+(.\w+)?$", def_name):
3939
log(f"Skipping {def_name}: not expected format")
4040
continue
41-
42-
# Skip definitions that don't have properties (e.g., simple types like strings, arrays)
43-
if "properties" not in def_schema:
44-
log(f"Skipping {def_name}: no properties field (likely a simple type)")
45-
continue
46-
4741
# If e.g. AWS::S3::Bucket, we only look under Properties
4842
# TODO: Support resource attributes et al.
4943
props = def_schema["properties"] if "." in def_name else def_schema["properties"]["Properties"]["properties"]

samtranslator/schema/schema.json

Lines changed: 37639 additions & 149397 deletions
Large diffs are not rendered by default.

schema_source/cfn_schema_generator.py

Lines changed: 300 additions & 249 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)