Skip to content

Commit 369a39a

Browse files
committed
[C-Curl] Client generator does not handle float properly (#21092)
- Add missing yaml example file
1 parent b8721a6 commit 369a39a

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

modules/openapi-generator/src/test/resources/2_0/c/petstore.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,40 @@ paths:
727727
responses:
728728
'200':
729729
description: successful operation
730+
'/user/test_int32_int64_float_double':
731+
get:
732+
tags:
733+
- user
734+
summary: test int32, int64 float and double query parameters in API
735+
description: This can test int32, int64 float and double query parameters in API.
736+
operationId: test_int32_int64_float_double
737+
produces:
738+
- application/xml
739+
- application/json
740+
parameters:
741+
- name: floatnum
742+
in: query
743+
description: A float number
744+
type: number
745+
format: float
746+
- name: doublenum
747+
in: query
748+
description: A double number
749+
type: number
750+
format: double
751+
- name: int32num
752+
in: query
753+
description: An int32 number
754+
type: integer
755+
format: int32
756+
- name: int64num
757+
in: query
758+
description: An int64 number
759+
type: integer
760+
format: int64
761+
responses:
762+
'200':
763+
description: successful operation
730764
securityDefinitions:
731765
petstore_auth:
732766
type: oauth2

0 commit comments

Comments
 (0)