UNPKG

@har-sdk/openapi-sampler

Version:

[![Maintainability](https://api.codeclimate.com/v1/badges/4acaec95c82465cb2c3d/maintainability)](https://codeclimate.com/github/NeuraLegion/har-sdk/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/4acaec95c82465cb2c3d/test_coverage

15 lines (14 loc) 903 B
import { Schema } from './traverse'; import { OpenAPISchema } from './samplers'; import { OpenAPIV2, OpenAPIV3 } from '@har-sdk/core'; export declare type OpenAPIArraySchemaObject = OpenAPIV3.ArraySchemaObject | OpenAPIV2.SchemaObject; export declare type OpenAPIReferenceObject = OpenAPIV3.ReferenceObject | OpenAPIV2.ReferenceObject; export declare const mergeDeep: (...objects: Record<string, any>[]) => Record<string, any>; export declare const firstArrayElement: <T>(x: T[]) => T; export declare const getReplacementForCircular: (type: string) => { value: {}; }; export declare const hasExample: (schema: Schema) => schema is OpenAPISchema; export declare const hasDefault: (schema: Schema) => schema is OpenAPISchema; export declare const hasItems: (schema: Schema) => schema is OpenAPIArraySchemaObject; export declare const isReference: (schema: Schema) => schema is OpenAPIReferenceObject;