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
import{fromOpenApi}from'@mswjs/source/open-api'importapifrom'./api.spec.json'consthandlers=awaitfromOpenApi(api)// Result when using client
Result: {status: 16.76}
Reproduction steps
Expected behavior
Initial assessment
Screenshots
The text was updated successfully, but these errors were encountered:
Description
In the OpenAPI spec, when an
enum
key exists, it's not respected in mock responses. See example:Just using standard library
Reproduction steps
Expected behavior
Initial assessment
Screenshots
The text was updated successfully, but these errors were encountered: