mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 16:22:48 +00:00
Swagger eiffel:fix (#6674)
* Updated api client, Required parameters {{#required}} .. {{/required}}, are mapped to Eiffel
Void Safety Rules, optional parameters are translated to detachable TYPE.
Validation Rules are mapped to preconditions, at the moment maximun and minimun
validation has been added.
Improved API_CLIENT.parameter_to_tuple feature to accept a LIST [ANY] instead of LIST [STRING_32].
Improved model template to generate the model output.
* Updated API_CLIENT.parameter_to_string feature, missing STRING representation.
* Updating sample using the latest modifications.
This commit is contained in:
@@ -232,6 +232,10 @@ feature -- Query Parameter Helpers
|
||||
-- TODO improve to support
|
||||
-- dateTime string date-time As defined by date-time - RFC3339
|
||||
Result := date_time.date.debug_output
|
||||
elseif attached {STRING_32} a_param as str_32 then
|
||||
Result := str_32
|
||||
elseif attached {STRING_8} a_param as str_8 then
|
||||
Result := str_8
|
||||
else
|
||||
-- Unsupported Object type.
|
||||
Result := ""
|
||||
|
||||
Reference in New Issue
Block a user