Skip to content

Instantly share code, notes, and snippets.

@savelee
Last active March 2, 2020 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save savelee/688ac7837f58dfe3561d4e56d835d5f7 to your computer and use it in GitHub Desktop.
Save savelee/688ac7837f58dfe3561d4e56d835d5f7 to your computer and use it in GitHub Desktop.
schema.json Sanity Dialogflow
import createSchema from 'part:@sanity/base/schema-creator'
import schemaTypes from 'all:part:@sanity/base/schema-type'
import simpleResponse from './simpleresponse'
// Then we give our schema to the builder and provide the result to Sanity
export default createSchema({
// We name our schema
name: 'dialogflow',
// Then proceed to concatenate our document type
// to the ones provided by any plugins that are installed
types: schemaTypes.concat([
// The following are document types which will appear
// in the studio.
simpleResponse,
])
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment