UNPKG

@omnigraph/openapi

Version:
14 lines (13 loc) 598 B
import type { JSONSchemaLoaderOptions } from '@omnigraph/json-schema'; import type { HATEOASConfig } from './getJSONSchemaOptionsFromOpenAPIOptions.cjs'; export interface OpenAPILoaderOptions extends Partial<JSONSchemaLoaderOptions> { source: string; selectQueryOrMutationField?: OpenAPILoaderSelectQueryOrMutationFieldConfig[]; fallbackFormat?: 'json' | 'yaml' | 'js' | 'ts'; jsonApi?: boolean; HATEOAS?: HATEOASConfig | boolean; } export interface OpenAPILoaderSelectQueryOrMutationFieldConfig { type: 'query' | 'mutation' | 'Query' | 'Mutation'; fieldName: string; }