Skip to content

Commit

Permalink
Update based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jterapin committed Aug 28, 2024
1 parent 0711821 commit 3d1b994
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions build_tools/customizations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ def dynamodb_example_deep_transform(subsegment, keys)
api('CloudFront') do |api|

api['shapes'].each do |_, shape|
if shape['members'] && shape['members']['MaxItems']
shape['members']['MaxItems']['shape'] = 'integer'
end
shape['members']['MaxItems']['shape'] = 'integer' if shape['members'] && shape['members']['MaxItems']
end

api['operations'].keys.each do |name|
Expand Down Expand Up @@ -107,7 +105,7 @@ def dynamodb_example_deep_transform(subsegment, keys)
end

api('ImportExport') do |api|
api['metadata']['serviceId'] = 'importexport' if api['metadata']['serviceId'].nil?
api['metadata']['serviceId'] ||= 'importexport'

api['operations'].each do |_, operation|
operation['http']['requestUri'] = '/'
Expand All @@ -116,10 +114,8 @@ def dynamodb_example_deep_transform(subsegment, keys)

%w(Lambda LambdaPreview).each do |svc_name|
api(svc_name) do |api|
api['metadata']['serviceId'] ||= 'Lambda Preview' if svc_name == 'LambdaPreview'
api['shapes']['Timestamp']['type'] = 'timestamp'
if (svc_name == 'LambdaPreview') && api['metadata']['serviceId'].nil?
api['metadata']['serviceId'] = 'Lambda Preview'
end
end

doc('lambda') do |docs|
Expand Down Expand Up @@ -225,7 +221,7 @@ def dynamodb_example_deep_transform(subsegment, keys)
# uses both flattened and locationName. Query protocol is supposed to
# ignore location name (xmlName) when flattened (xmlFlattened) is used.
api('SimpleDB') do |api|
api['metadata']['serviceId'] = 'SimpleDB' if api['metadata']['serviceId'].nil?
api['metadata']['serviceId'] ||= 'SimpleDB'

api['shapes'].each do |_, shape|
next unless shape['type'] == 'structure'
Expand Down

0 comments on commit 3d1b994

Please sign in to comment.