Skip to content

Commit 6667c65

Browse files
committed
Minor ux improvements
1 parent bae5730 commit 6667c65

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

gems/smithy/lib/smithy/views/client/endpoint_parameter.rb

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def client_context_param_value
146146

147147
def built_in_param_value
148148
return unless @data['builtIn']
149+
raise ArgumentError, "Endpoint built-in not available for #{@data['builtIn']}" unless built_in_binding
149150

150151
[built_in_binding[:render_build].call(@plan, nil), 'config']
151152
end

gems/smithy/lib/smithy/views/client/operation_examples.rb

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def error_example(example)
6666
end
6767

6868
def params(document, target, indent = ' ')
69+
return '{}' if document.nil? || document.empty?
70+
6971
shape = Model.shape(@model, target)
7072
structure(document, shape, indent).join("\n")
7173
end

0 commit comments

Comments
 (0)