@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
46 lines (41 loc) • 1.39 kB
text/typescript
import { SchemaDefinition, SchemaPropertyType, SchemaStringFormat } from '@/schemas/types/schema'
export type SchemaPropertiesResponse = Record<string, SchemaPropertyResponse>
export type SchemaDefinitionsResponse = Record<string, SchemaPropertyResponse>
// Commented out properties are unused. Left here for future reference
export type SchemaPropertyResponse = {
// prefect specific properties
position?: number,
block_type_slug?: string,
// open api properties
$ref?: SchemaDefinition,
anyOf?: SchemaPropertyResponse[],
allOf?: SchemaPropertyResponse[],
// oneOf?: SchemaPropertyResponse[],
example?: string,
// alias?: string,
default?: unknown,
const?: unknown,
description?: string,
enum?: unknown[],
// exclusiveMaximum?: boolean | number,
// exclusiveMinimum?: boolean | number,
format?: SchemaStringFormat,
items?: SchemaPropertyResponse | SchemaPropertyResponse[],
prefixItems?: SchemaPropertyResponse[],
// maximum?: number,
maxItems?: number,
// maxLength?: number,
// minimum?: number,
minItems?: number,
// minLength?: number,
// multipleOf?: number,
// pattern?: string,
properties?: SchemaPropertiesResponse,
required?: string[],
title?: string,
type?: SchemaPropertyType,
// uniqueItems?: boolean,
}
export type SchemaResponse = SchemaPropertyResponse & {
definitions?: SchemaDefinitionsResponse,
}