This specification:
parameters:
-
name: gender
in: formData
description: "User's gender"
required: true
type: string
enum: [m, f]
default: m
-
name: birthday
in: formData
description: "User's birth date"
required: true
type: date
Results in this:

When changing the type from date to string , the error message disappears.
date and date-time are not applicable types. If you want to use them, you can use them as format type alongside with a string type.
so just
type: string
format: YYYY-mm-dd
for example?
You _can_ do that, but no third party tool will currently render that.
The proper way to do it would be:
type: string
format: date
You have more information here to see what that format(s) that would support. If you need a specific format, you'd have to use the pattern property which accepts a regex.
Most helpful comment
You _can_ do that, but no third party tool will currently render that.
The proper way to do it would be:
You have more information here to see what that format(s) that would support. If you need a specific format, you'd have to use the
patternproperty which accepts a regex.