mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): improve openapi schema types
We can use the autogenerated types to avoid types
This commit is contained in:
parent
4c6a88a642
commit
282a7f32d3
@ -1,12 +1,13 @@
|
|||||||
import { OpenAPIV3_1 } from 'openapi-types';
|
import { OpenAPIV3_1 } from 'openapi-types';
|
||||||
import {
|
import {
|
||||||
InputFieldJSONSchemaExtra,
|
InputFieldJSONSchemaExtra,
|
||||||
|
InvocationJSONSchemaExtra,
|
||||||
OutputFieldJSONSchemaExtra,
|
OutputFieldJSONSchemaExtra,
|
||||||
} from 'services/api/types';
|
} from 'services/api/types';
|
||||||
|
|
||||||
// Janky customization of OpenAPI Schema :/
|
// Janky customization of OpenAPI Schema :/
|
||||||
|
|
||||||
export type InvocationSchemaExtra = {
|
export type InvocationSchemaExtra = InvocationJSONSchemaExtra & {
|
||||||
output: OpenAPIV3_1.ReferenceObject; // the output of the invocation
|
output: OpenAPIV3_1.ReferenceObject; // the output of the invocation
|
||||||
title: string;
|
title: string;
|
||||||
category?: string;
|
category?: string;
|
||||||
|
@ -30,6 +30,7 @@ export type EnqueueBatchResult = components['schemas']['EnqueueBatchResult'];
|
|||||||
|
|
||||||
export type InputFieldJSONSchemaExtra = s['InputFieldJSONSchemaExtra'];
|
export type InputFieldJSONSchemaExtra = s['InputFieldJSONSchemaExtra'];
|
||||||
export type OutputFieldJSONSchemaExtra = s['OutputFieldJSONSchemaExtra'];
|
export type OutputFieldJSONSchemaExtra = s['OutputFieldJSONSchemaExtra'];
|
||||||
|
export type InvocationJSONSchemaExtra = s['UIConfigBase'];
|
||||||
|
|
||||||
// App Info
|
// App Info
|
||||||
export type AppVersion = s['AppVersion'];
|
export type AppVersion = s['AppVersion'];
|
||||||
|
Loading…
Reference in New Issue
Block a user