Introduction
In this post we are going to look at adding validation to the code we worked on in Part 6. We will use active patterns that we looked at in the last post (Part 7) and we will see how you can easily model domain errors.
Setting Up
We are going to use the code from Part 6.
Solving the Problem
The first thing we need to do is create a new record type that will store our validated data. Add this type below the Customer type definition: