forked from loafle/openapi-generator-original
use encode_path instead in crystal (#11439)
This commit is contained in:
parent
d8f70b3390
commit
b901f11e85
@ -1052,6 +1052,7 @@ If you want to join the committee, please kindly apply by sending an email to te
|
||||
| C++ | @ravinikam (2017/07) @stkrwork (2017/07) @etherealjoy (2018/02) @martindelille (2018/03) @muttleyxd (2019/08) |
|
||||
| C# | @mandrean (2017/08) @frankyjuang (2019/09) @shibayan (2020/02) @Blackclaws (2021/03) @lucamazzanti (2021/05) |
|
||||
| Clojure | |
|
||||
| Crystal | @cyangle (2021/01) |
|
||||
| Dart | @jaumard (2018/09) @josh-burton (2019/12) @amondnet (2019/12) @sbu-WBT (2020/12) @kuhnroyal (2020/12) @agilob (2020/12) @ahmednfwela (2021/08) |
|
||||
| Eiffel | @jvelilla (2017/09) |
|
||||
| Elixir | @mrmstn (2018/12) |
|
||||
|
@ -125,7 +125,7 @@ module {{moduleName}}
|
||||
{{/hasValidation}}
|
||||
{{/allParams}}
|
||||
# resource path
|
||||
local_var_path = "{{{path}}}"{{#pathParams}}.sub("{" + "{{baseName}}" + "}", URI.encode({{paramName}}.to_s){{^strictSpecBehavior}}.gsub("%2F", "/"){{/strictSpecBehavior}}){{/pathParams}}
|
||||
local_var_path = "{{{path}}}"{{#pathParams}}.sub("{" + "{{baseName}}" + "}", URI.encode_path({{paramName}}.to_s){{^strictSpecBehavior}}.gsub("%2F", "/"){{/strictSpecBehavior}}){{/pathParams}}
|
||||
|
||||
# query parameters
|
||||
query_params = Hash(String, String).new
|
||||
|
@ -96,7 +96,7 @@ module Petstore
|
||||
raise ArgumentError.new("Missing the required parameter 'pet_id' when calling PetApi.delete_pet")
|
||||
end
|
||||
# resource path
|
||||
local_var_path = "/pet/{petId}".sub("{" + "petId" + "}", URI.encode(pet_id.to_s).gsub("%2F", "/"))
|
||||
local_var_path = "/pet/{petId}".sub("{" + "petId" + "}", URI.encode_path(pet_id.to_s).gsub("%2F", "/"))
|
||||
|
||||
# query parameters
|
||||
query_params = Hash(String, String).new
|
||||
@ -274,7 +274,7 @@ module Petstore
|
||||
raise ArgumentError.new("Missing the required parameter 'pet_id' when calling PetApi.get_pet_by_id")
|
||||
end
|
||||
# resource path
|
||||
local_var_path = "/pet/{petId}".sub("{" + "petId" + "}", URI.encode(pet_id.to_s).gsub("%2F", "/"))
|
||||
local_var_path = "/pet/{petId}".sub("{" + "petId" + "}", URI.encode_path(pet_id.to_s).gsub("%2F", "/"))
|
||||
|
||||
# query parameters
|
||||
query_params = Hash(String, String).new
|
||||
@ -390,7 +390,7 @@ module Petstore
|
||||
raise ArgumentError.new("Missing the required parameter 'pet_id' when calling PetApi.update_pet_with_form")
|
||||
end
|
||||
# resource path
|
||||
local_var_path = "/pet/{petId}".sub("{" + "petId" + "}", URI.encode(pet_id.to_s).gsub("%2F", "/"))
|
||||
local_var_path = "/pet/{petId}".sub("{" + "petId" + "}", URI.encode_path(pet_id.to_s).gsub("%2F", "/"))
|
||||
|
||||
# query parameters
|
||||
query_params = Hash(String, String).new
|
||||
@ -449,7 +449,7 @@ module Petstore
|
||||
raise ArgumentError.new("Missing the required parameter 'pet_id' when calling PetApi.upload_file")
|
||||
end
|
||||
# resource path
|
||||
local_var_path = "/pet/{petId}/uploadImage".sub("{" + "petId" + "}", URI.encode(pet_id.to_s).gsub("%2F", "/"))
|
||||
local_var_path = "/pet/{petId}/uploadImage".sub("{" + "petId" + "}", URI.encode_path(pet_id.to_s).gsub("%2F", "/"))
|
||||
|
||||
# query parameters
|
||||
query_params = Hash(String, String).new
|
||||
|
@ -39,7 +39,7 @@ module Petstore
|
||||
raise ArgumentError.new("Missing the required parameter 'order_id' when calling StoreApi.delete_order")
|
||||
end
|
||||
# resource path
|
||||
local_var_path = "/store/order/{orderId}".sub("{" + "orderId" + "}", URI.encode(order_id.to_s).gsub("%2F", "/"))
|
||||
local_var_path = "/store/order/{orderId}".sub("{" + "orderId" + "}", URI.encode_path(order_id.to_s).gsub("%2F", "/"))
|
||||
|
||||
# query parameters
|
||||
query_params = Hash(String, String).new
|
||||
@ -157,7 +157,7 @@ module Petstore
|
||||
end
|
||||
|
||||
# resource path
|
||||
local_var_path = "/store/order/{orderId}".sub("{" + "orderId" + "}", URI.encode(order_id.to_s).gsub("%2F", "/"))
|
||||
local_var_path = "/store/order/{orderId}".sub("{" + "orderId" + "}", URI.encode_path(order_id.to_s).gsub("%2F", "/"))
|
||||
|
||||
# query parameters
|
||||
query_params = Hash(String, String).new
|
||||
|
@ -212,7 +212,7 @@ module Petstore
|
||||
raise ArgumentError.new("Missing the required parameter 'username' when calling UserApi.delete_user")
|
||||
end
|
||||
# resource path
|
||||
local_var_path = "/user/{username}".sub("{" + "username" + "}", URI.encode(username.to_s).gsub("%2F", "/"))
|
||||
local_var_path = "/user/{username}".sub("{" + "username" + "}", URI.encode_path(username.to_s).gsub("%2F", "/"))
|
||||
|
||||
# query parameters
|
||||
query_params = Hash(String, String).new
|
||||
@ -267,7 +267,7 @@ module Petstore
|
||||
raise ArgumentError.new("Missing the required parameter 'username' when calling UserApi.get_user_by_name")
|
||||
end
|
||||
# resource path
|
||||
local_var_path = "/user/{username}".sub("{" + "username" + "}", URI.encode(username.to_s).gsub("%2F", "/"))
|
||||
local_var_path = "/user/{username}".sub("{" + "username" + "}", URI.encode_path(username.to_s).gsub("%2F", "/"))
|
||||
|
||||
# query parameters
|
||||
query_params = Hash(String, String).new
|
||||
@ -451,7 +451,7 @@ module Petstore
|
||||
raise ArgumentError.new("Missing the required parameter 'user' when calling UserApi.update_user")
|
||||
end
|
||||
# resource path
|
||||
local_var_path = "/user/{username}".sub("{" + "username" + "}", URI.encode(username.to_s).gsub("%2F", "/"))
|
||||
local_var_path = "/user/{username}".sub("{" + "username" + "}", URI.encode_path(username.to_s).gsub("%2F", "/"))
|
||||
|
||||
# query parameters
|
||||
query_params = Hash(String, String).new
|
||||
|
Loading…
x
Reference in New Issue
Block a user