Matic Example
A more complete example using Matic with sub schemas. Hopefully looking at the structure of this project will assist in beginning to work with Schema and putting together your own project file. It is suggested that you use this project as a start point for understanding how Matic works.
"personalDetails":
Users personal details
- "name":
- Personal Details
- "type":
- object
- "properties":
- ★"firstName":
- "name":
- User's first name
- "type":
- string
- ★"lastName":
- "name":
- User's last name
- "type":
- string
- ★"dateOfBirth":
Must be in the format: yyyy/mm/dd
- "name":
- User's date of birth
- "type":
- string
- ★"email":
- "name":
- User's email address
- "type":
- string
- "nickname":
- "name":
- User's preferred salutation
- "type":
- string
"address":
User's address details
- "name":
- Address
- "type":
- object
- "properties":
- ★"House/Flat":
House/flat number or name
- "type":
- string
- ★"Street":
Street name
- "type":
- string
- "Town":
Optional town name
- "type":
- string
- "City":
Optional city name
- "type":
- string
- "County":
Optional county name
- "type":
- string
- "Post/Zip code":
Optional post/zip code
- "type":
- string
- "maxLength":
- 7
- "minLength":
- 5
- ★"Country":
County of residence
- "type":
- string
"account":
Users account details
- "name":
- Account
- "type":
- object
- "properties":
- ★"userId":
Unique identifier for user
- "type":
- number
- ★"joinedDate":
Date user joined
- "type":
- string
- ★"balance":
Current account balance
- "type":
- number
- "minimum":
- 0
- "cardDetails":
User's card details
- "properties":
- ★"card":
Card type, i.e. Visa, Mastercard etc...
- "type":
- string
- ★"cardNumber":
16 digit card number
- "type":
- string
- "maxLength":
- 16
- "minLength":
- 16
- ★"expiryDate":
Date on which the card expires, format yyyy/mm/dd
- "type":
- string
- "issueNumber":
Optional issue number if available
- "type":
- string
- "maxLength":
- 3
- ★"nameOnCard":
User's name as it appears on the card
- "type":
- string