dappforce/subsocial-js

Generate JSON schemas from content types

siman opened this issue · 0 comments

siman commented

Generate JSON schema from TS:
https://github.com/YousefED/typescript-json-schema

Validate against JSON schema:
https://github.com/epoberezkin/ajv

An open questions

  • We need to register supported schemas per dapp somewhere.
  • Need to store a schema version in content (in a field schema?)