summaryrefslogtreecommitdiff
path: root/packages/backend/src/misc/simple-schema.ts
blob: abbb348e240e78ddbe581ef836160cde68c26639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export interface SimpleSchema {
	type: 'boolean' | 'number' | 'string' | 'array' | 'object' | 'any';
	nullable: boolean;
	optional: boolean;
	items?: SimpleSchema;
	properties?: SimpleObj;
	description?: string;
	example?: any;
	format?: string;
	ref?: string;
	enum?: string[];
	default?: boolean | null;
}

export interface SimpleObj { [key: string]: SimpleSchema; }