Schema
A Tipe schema is used to determine the shape of your content. Your schema lives in your code and checked into git. You can leverage the community and share and use other schemas.
Schema format
Example Schema
{
id: 'page',
label: 'Page',
type: 'document',
fields: [
{
id: 'name',
type: 'string',
label: 'Page Name'
}
]
}
Schema Fields
schemaParam
Required
Possible Values
Description
typetrue
-
must be "document"
idtrue
-
The name of your Tipe Environment
labeltrue
-
The name of your Tipe Environment
fields?object, document
-
The name of your Tipe Environment
contains?array
-
The name of your Tipe Environment
component?object, document
-
The name of your Tipe Environment
Schemas Types
Document
A schema must have at least one document. A document type is used to created documents.