UNPKG

@omnigraph/openapi

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