@omnigraph/openapi
Version:
12 lines (11 loc) • 471 B
TypeScript
import { JSONSchemaLoaderOptions } from '@omnigraph/json-schema';
export interface OpenAPILoaderOptions extends Partial<JSONSchemaLoaderOptions> {
source: string;
selectQueryOrMutationField?: OpenAPILoaderSelectQueryOrMutationFieldConfig[];
fallbackFormat?: 'json' | 'yaml' | 'js' | 'ts';
jsonApi?: boolean;
}
export interface OpenAPILoaderSelectQueryOrMutationFieldConfig {
type: 'query' | 'mutation' | 'Query' | 'Mutation';
fieldName: string;
}