From cd04952ad302f760feb085442cab43b8ba8fbfc4 Mon Sep 17 00:00:00 2001 From: David Sehnal <david.sehnal@gmail.com> Date: Mon, 16 Oct 2017 01:16:10 +0200 Subject: [PATCH] A todo for CIF schemas --- src/reader/cif/schema/utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/reader/cif/schema/utils.ts b/src/reader/cif/schema/utils.ts index 0adabc721..27a5174fa 100644 --- a/src/reader/cif/schema/utils.ts +++ b/src/reader/cif/schema/utils.ts @@ -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 => { -- GitLab