-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[crystal] Fix some issues in crystal client templates (#10629)
* Fix some issues in crystal client templates using google drive v3 oas3 api spec * update crystal petstore sample code * Address PR comments Raises on unsupported feature clean up extra new lines in partial_model_enum_class.mustache * Use size instead of length length is undefined for String or Array * Fix typo * Use default value instead of nil * remove unused template file * Use ::File instead of File as file type to avoid conflicts The spec could also have a File model * support file upload in multipart/form-data post body * Revert breaking changes in api template * Use double quotes to quote string values single quotes are used for single char in crystal * Update api_client to use global ::File and update petstore samples * JSON Annotation Field key's value should be double quoted * Handle nil values for form_params * Remove default values from method definitions due to grammar error * Fix integration tests
- Loading branch information
Showing
17 changed files
with
110 additions
and
723 deletions.
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
Oops, something went wrong.