33 lines
698 B
TypeScript
33 lines
698 B
TypeScript
import Chart from '../../core';
|
|
|
|
export const name = 'testGrouped';
|
|
|
|
export const schema = {
|
|
type: 'object' as const,
|
|
optional: false as const, nullable: false as const,
|
|
properties: {
|
|
foo: {
|
|
type: 'object' as const,
|
|
optional: false as const, nullable: false as const,
|
|
properties: {
|
|
total: {
|
|
type: 'number' as const,
|
|
optional: false as const, nullable: false as const,
|
|
},
|
|
|
|
inc: {
|
|
type: 'number' as const,
|
|
optional: false as const, nullable: false as const,
|
|
},
|
|
|
|
dec: {
|
|
type: 'number' as const,
|
|
optional: false as const, nullable: false as const,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export const entity = Chart.schemaToEntity(name, schema, true);
|