-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for docs generation when no items key for a property is present. (#…
- Loading branch information
1 parent
c29b56c
commit f0e3769
Showing
4 changed files
with
209 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
tests/data/schema/hook/valid/valid_hook_configuration_with_array_items.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"typeName": "TestOnly::Sample::Hook", | ||
"description": "Example hook schema for unit tests.", | ||
"sourceUrl": "https://github.com/aws-cloudformation/SAMPLE-URL-SUFFIX", | ||
"documentationUrl": "https://github.com/aws-cloudformation/SAMPLE-URL-SUFFIX/blob/main/README.md", | ||
"typeConfiguration": { | ||
"properties": { | ||
"exampleArrayProperty": { | ||
"type": "array", | ||
"description": "Example property of array type with items of string type.", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"required": [], | ||
"handlers": { | ||
"preCreate": { | ||
"targetNames": [ | ||
"AWS::S3::Bucket" | ||
], | ||
"permissions": [] | ||
}, | ||
"preUpdate": { | ||
"targetNames": [ | ||
"AWS::S3::Bucket" | ||
], | ||
"permissions": [] | ||
}, | ||
"preDelete": { | ||
"targetNames": [ | ||
"AWS::S3::Bucket" | ||
], | ||
"permissions": [] | ||
} | ||
}, | ||
"additionalProperties": false | ||
} |
37 changes: 37 additions & 0 deletions
37
tests/data/schema/hook/valid/valid_hook_configuration_without_array_items.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"typeName": "TestOnly::Sample::Hook", | ||
"description": "Example hook schema for unit tests.", | ||
"sourceUrl": "https://github.com/aws-cloudformation/SAMPLE-URL-SUFFIX", | ||
"documentationUrl": "https://github.com/aws-cloudformation/SAMPLE-URL-SUFFIX/blob/main/README.md", | ||
"typeConfiguration": { | ||
"properties": { | ||
"exampleArrayProperty": { | ||
"type": "array", | ||
"description": "Example property of array type without items (that is, an 'items` key at this same level)." | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"required": [], | ||
"handlers": { | ||
"preCreate": { | ||
"targetNames": [ | ||
"AWS::S3::Bucket" | ||
], | ||
"permissions": [] | ||
}, | ||
"preUpdate": { | ||
"targetNames": [ | ||
"AWS::S3::Bucket" | ||
], | ||
"permissions": [] | ||
}, | ||
"preDelete": { | ||
"targetNames": [ | ||
"AWS::S3::Bucket" | ||
], | ||
"permissions": [] | ||
} | ||
}, | ||
"additionalProperties": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters