In our previous post on shared data and dependencies, we saw how to create multi-model dependencies with FakeIt. Today, we are going to look at how we can create similar but smaller models by leveraging definitions.

Definitions are a way of creating reusable set(s) within your model. It allows you to define a set of properties/values one time, referencing them multiple times throughout your model. Definitions in a FakeIt model are very similar to how definitions are used in the Swagger/Open API Specification.

Source: dzone

Leave a Reply

Your email address will not be published. Required fields are marked *