-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support custom fields of list/scalar/map types (#268)
Adds functionality for the generator.yaml file to contain a `FieldConfig.Type` attribute that is the Go type override string for a field. If the Go type of the field cannot be inferred via the Create Input/Output shape *or* via the `FieldConfig.From` (SourceFieldConfig) value, we can look at this new `FieldConfig.Type` value and construct a `aws-sdk-go/private/model/api:ShapeRef` object manually. Thus, with this patch, we can do something like this (example from the iam-controller's generator.yaml file, which is what I tested this patch on): ```yaml resources: Role: fields: Policies: type: "[]*string" ``` Signed-off-by: Jay Pipes <jaypipes@gmail.com>
- Loading branch information
Showing
5 changed files
with
151 additions
and
1 deletion.
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
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
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
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
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