Creates a schema that randomly picks an item from a provided collection.
Optionally returns the value of a specific field (idField) from the chosen item.
Type Parameters
RefTextendsobject
The type of objects within the collection (must extend object).
Creates a schema that randomly picks an item from a provided collection. Optionally returns the value of a specific field (
idField
) from the chosen item.