You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With outputvalidation sets to true, if the response has data time field in it and has wrong type value, the entire result fails with 500 response code.
eg:
DataResponse -
{
name: "test", audit:{"created_at": "test"}
}
If the response schema is
DataResponse:
type: object
description: "stock model"
properties:
name:
type: string
description: "stock model"
example: "XYZ"
audit:
$ref: '#/definitions/Audit'
required:
- name
- audit
Audit:
type: object
description: "audit on the stock view"
properties:
created_at:
title: Created At
description: "when the object is created"
type: string
readOnly: true
format: date-time
yo --version - 3.1.0
The text was updated successfully, but these errors were encountered:
With outputvalidation sets to true, if the response has data time field in it and has wrong type value, the entire result fails with 500 response code.
eg:
yo --version - 3.1.0
The text was updated successfully, but these errors were encountered: