Examples
Last updated
Last updated
The Data Schema is the essence of your Object Type. Created using JSON, Data Schemas can be as simple or complex as your needs demand. Several examples of this powerful Contextual capability are provided.
An example of a Customer Object Type typical to a simple business or CRM system.
Object Type Definition | Value |
---|---|
AI Assistant prompts you might consider to modify this schema:
"Add validation to the zip property"
"Instead of separate name fields, combine into a single fullName field"
"Add validation to the phone property so it meets US standard"
"Add a description to each property"
This schema defines an object for storing customer data, using customerId
as the primary key, which is generated as a UUID version 4 string. The schema includes properties such as firstName
, lastName
, email
(which must be a valid email format), and phone
, each requiring a minimum length of one character. It also details an address
object with mandatory properties like street
, city
, state
, and zip
, each also requiring a minimum length of one. All these properties are required for the object to be valid. Additionally, the schema disallows any properties not explicitly defined (additionalProperties
is set to false).
Object Type Definition | Value |
---|---|
Object Type Definition | Value |
---|---|
Object Type Definition | Value |
---|---|
ID