Skip to content
This repository was archived by the owner on Apr 17, 2020. It is now read-only.
/ peritext-core Public archive

[deprecated] peritext core schemas, validators, and default objects creators

Notifications You must be signed in to change notification settings

peritext/peritext-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Peritext core

This repository is dedicated to document, validate and use the data schema of stories written within the peritext ecosystem.

The module exports the following submodules :

{
  schemas: { // project's core data schemas
    resource: Object,
    contextualization:  Object,
    contextualizer:  Object,
    rawContent:  Object,
    section:  Object,
    story:  Object
  },
  // default objects creators
  createStory: Function,
  createSection: Function,
  createResource: Function,
  createContextualization: Function,
  createContextualizer: Function,

  // validators
  validateStory: Function,
  validateSection: Function,
  validateResource: Function,
  validateContextualization: Function,
  validateContextualizer: Function,
}

Doc will be improved soon. Waiting for that moment, check tests/index to have a first overview of these modules apis.

About

[deprecated] peritext core schemas, validators, and default objects creators

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published