-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return mocked value in specified format #79
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be nice if the application returns the mocked data, taking into account the format parameter (if specified).
https://spec.openapis.org/oas/v3.1.0#dataTypeFormat
https://ajv.js.org/packages/ajv-formats.html#formats
Currently,
type: string
is always returning'string'
regardless of the specified format.If the type is string and the format is date, a more appropriate response would be '2023-11-17'.
I am going to link a PR to this issue.
Thanks
The text was updated successfully, but these errors were encountered: