xogroup / felicity

Javascript object constructors and sample data based on Joi schema.
Other
111 stars 9 forks source link

Fix entityFor bug with Joi.alternatives.try #109

Closed WesTyler closed 7 years ago

WesTyler commented 7 years ago

Description

Fixes bug in Felicity.entityFor when the provided schema uses the Joi.alternatives().try() syntax.

Related Issue

Closes #108

Motivation and Context

entityFor was throwing uncaught errors.

Types of changes

Checklist: