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
against these results. As you can see, duration strings ending in T are not valid as well as strings without any duration values (e.g., P and PW)
I discovered this issue via Prism, where API response validation checks are failing against generated data. I initially logged stoplightio/prism#2650 against Prism, but it looks like this is actually a bug on json-schema-faker.
The text was updated successfully, but these errors were encountered:
Generated duration strings are often not valid.
To reproduce the issue:
Using https://json-schema-faker.js.org/ with the following schema, some results generated are valid and others are not.
Clicking "Generate" 10 times yielded the following results--7 valid durations and 3 non-valid durations:
Here is a comparison of the Regex used in
json-schema-faker/src/lib/generators/coreFormat.mjs
Line 26 in 7446c2f
I discovered this issue via Prism, where API response validation checks are failing against generated data. I initially logged stoplightio/prism#2650 against Prism, but it looks like this is actually a bug on json-schema-faker.
The text was updated successfully, but these errors were encountered: