@scalar/openapi-types
Version:
Modern OpenAPI types
18 lines (17 loc) • 832 B
JavaScript
import { z } from "zod";
import { PathItemObjectSchema } from "./path-item-object.js";
const PathsObjectSchema = z.record(
/**
* A relative path to an individual endpoint. The field name MUST begin with a forward slash (/). The path is appended
* (no relative URL resolution) to the expanded URL from the Server Object's url field in order to construct the full
* URL. Path templating is allowed. When matching URLs, concrete (non-templated) paths would be matched before their
* templated counterparts. Templated paths with the same hierarchy but different templated names MUST NOT exist as
* they are identical. In case of ambiguous matching, it's up to the tooling to decide which one to use.
*/
z.string(),
PathItemObjectSchema
);
export {
PathsObjectSchema
};
//# sourceMappingURL=paths-object.js.map