Skip to content
Snippets Groups Projects
Commit cd04952a authored by David Sehnal's avatar David Sehnal
Browse files

A todo for CIF schemas

parent 23ebae54
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,10 @@ function getCode (d: Data.Frame, ctx: SafeFrameData): string|undefined {
export function getSchema (dic: Data.Block) { // todo Block needs to be specialized with safe frames as well
const schema: FrameSchema = {} // { [category: string]: Category.Schema } = {}
// TODO: for fields with finite allowed values, generate:
// type FieldValue = 'a' | 'b' | 'c'
// const catetegory = { field: <type> as Field.Schema<FieldValue> }
const categories: SafeFrameCategories = {}
const links: SafeFrameLinks = {}
dic.saveFrames.forEach(d => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment