mirror of
https://github.com/LukeHagar/openapi-types.git
synced 2025-12-06 04:20:29 +00:00
48 lines
1.8 KiB
TypeScript
48 lines
1.8 KiB
TypeScript
/**
|
|
* OpenAPI 3.0 JSON Schemas
|
|
*
|
|
* This file exports all available JSON schemas for OpenAPI 3.0 specification.
|
|
* These schemas can be used to validate OpenAPI 3.0 documents and components.
|
|
*/
|
|
|
|
export { default as callback } from "./components/callback.json";
|
|
export { default as example } from "./components/example.json";
|
|
export { default as header } from "./components/header.json";
|
|
export { default as link } from "./components/link.json";
|
|
export { default as parameter } from "./components/parameter.json";
|
|
export { default as pathitem } from "./components/pathitem.json";
|
|
export { default as requestbody } from "./components/requestbody.json";
|
|
// Component schemas
|
|
export { default as response } from "./components/response.json";
|
|
export { default as schema } from "./components/schema.json";
|
|
export { default as securityscheme } from "./components/securityscheme.json";
|
|
export { default as specification } from "./main/specification.json";
|
|
|
|
import callback from "./components/callback.json";
|
|
import example from "./components/example.json";
|
|
import header from "./components/header.json";
|
|
import link from "./components/link.json";
|
|
import parameter from "./components/parameter.json";
|
|
import pathitem from "./components/pathitem.json";
|
|
import requestbody from "./components/requestbody.json";
|
|
import response from "./components/response.json";
|
|
import schema from "./components/schema.json";
|
|
import securityscheme from "./components/securityscheme.json";
|
|
// Import all schemas for internal use
|
|
import specification from "./main/specification.json";
|
|
|
|
// Re-export all schemas as a single object for convenience
|
|
export const schemas = {
|
|
specification,
|
|
response,
|
|
link,
|
|
requestbody,
|
|
example,
|
|
parameter,
|
|
schema,
|
|
securityscheme,
|
|
header,
|
|
callback,
|
|
pathitem,
|
|
} as const;
|