mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 03:17:09 +00:00
[Go-Server] Add support for DateTime Query Parameters (#16749)
* Add support for DateTime objects in the Path, Query Params, and as a List * Fix indentation * Add an exaple that has dateTimes Move the date parsing into a common util in the routers.go file. * Fix compilation issue and regen * Use the `RequiredError` to handle this case * Only split on a "," and not an extra 'space' after the ",".
This commit is contained in:
@@ -136,6 +136,24 @@ paths:
|
||||
type: string
|
||||
type: array
|
||||
style: form
|
||||
- description: Find pets born after this date
|
||||
explode: false
|
||||
in: query
|
||||
name: bornAfter
|
||||
required: true
|
||||
schema:
|
||||
format: date-time
|
||||
type: string
|
||||
style: form
|
||||
- description: Find pets born before this date
|
||||
explode: false
|
||||
in: query
|
||||
name: bornBefore
|
||||
required: false
|
||||
schema:
|
||||
format: date-time
|
||||
type: string
|
||||
style: form
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
|
||||
Reference in New Issue
Block a user