According to JSON. schema standards, value of required should always be an array (Ref). But when it contains string type of data, json-schema-faker was failing to convert the data due to invalid types passing down in further logic resulting in TypeError.
Fix
We'll make sure that requiredProperties is always an array to avid TypeErrors.
Overview
Fixes issue: #708
RCA
According to JSON. schema standards, value of
required
should always be anarray
(Ref). But when it containsstring
type of data, json-schema-faker was failing to convert the data due to invalid types passing down in further logic resulting in TypeError.Fix
We'll make sure that
requiredProperties
is always an array to avid TypeErrors.