vitepress-openapi
Version:
Generate VitePress API Documentation from OpenAPI Specification.
8 lines (7 loc) • 379 B
TypeScript
/**
* Detects whether an object is a map of OpenAPI ExampleObjects
* https://spec.openapis.org/oas/v3.1.0#example-object
* We consider it a named-examples map if it's a non-array object and at least one entry
* is an object containing one of the explicit ExampleObject keys.
*/
export declare function isNamedExamplesMap(values: unknown): values is Record<string, unknown>;