iceshrimp-legacy/packages/backend/src/services/chart/charts/entities/test-unique.ts
2021-12-14 18:12:37 +09:00

21 lines
451 B
TypeScript

import Chart from '../../core';
export const name = 'testUnique';
export const schema = {
type: 'object' as const,
optional: false as const, nullable: false as const,
properties: {
foo: {
type: 'array' as const,
optional: false as const, nullable: false as const,
items: {
type: 'string' as const,
optional: false as const, nullable: false as const,
},
},
},
};
export const entity = Chart.schemaToEntity(name, schema);