tipe docs
Home

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

schema
Param
Required
Possible Values
Description
type
true
-
must be "document"
id
true
-
The name of your Tipe Environment
label
true
-
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.