schyma
Version:
JSON Schemas Visualizer React component
21 lines (20 loc) • 433 B
TypeScript
import { JSONSchema7Object } from "json-schema";
import { Node } from "reactflow";
export interface ISchyma {
title: string;
description: string;
schema: JSONSchema7Object;
}
export interface IObject {
[x: string]: any;
}
export interface NodeData {
label: string;
id: string;
children: Node[];
description?: string;
properties?: any;
relations: any;
examples?: any;
parent: string;
}