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
$ sudo oatts generate -s ./openapi.yaml -w ./tests/
Error: unknown generator for "uuid" in /
at generate (/usr/local/lib/node_modules/oatts/node_modules/json-schema-faker/lib/jsf.js:74:13)
at Parameter.getSample (/usr/local/lib/node_modules/oatts/node_modules/sway/lib/types/parameter.js:94:39)
at /usr/local/lib/node_modules/oatts/lib/process.js:275:90
at Array.forEach (<anonymous>)
at processParams (/usr/local/lib/node_modules/oatts/lib/process.js:259:24)
at /usr/local/lib/node_modules/oatts/lib/process.js:202:22
at Array.forEach (<anonymous>)
at processTransactions (/usr/local/lib/node_modules/oatts/lib/process.js:196:29)
at /usr/local/lib/node_modules/oat
The text was updated successfully, but these errors were encountered:
This is because the uuid format is not part of the OAS schema and as such, needs to be registered with a custom type generator on sway in order to fake the params using this format.
This should be an easy thing to add to oatts, just need to expose an option to supply the map of custom generators, then invoke the sway API call to register them with the API object.
Do you have any interest in supplying a PR for this?
In my specification I using parameters:
And for this format I got an error:
The text was updated successfully, but these errors were encountered: