diff --git a/src/reader/cif/schema/utils.ts b/src/reader/cif/schema/utils.ts index 0adabc72159a311a954c69c0d95bd4841984f7d5..27a5174fa8fcb3a91bf818766867f67545a2ebed 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 => {