@scalar/openapi-types
Version:
Modern OpenAPI types
31 lines (30 loc) • 892 B
JavaScript
import { z } from "zod";
const XmlObjectSchema = z.object({
/**
* Replaces the name of the element/attribute used for the described schema property.
*/
name: z.string().optional(),
/**
* The URI of the namespace definition. Value MUST be in the form of a URL.
*/
namespace: z.string().optional(),
/**
* The prefix to be used for the name.
*/
prefix: z.string().optional(),
/**
* Declares whether the property definition translates to an attribute instead of an element.
* Default value is false.
*/
attribute: z.boolean().optional(),
/**
* MAY be used only for an array definition.
* Signifies whether the array is wrapped (for example, <books><book/><book/></books>)
* or unwrapped (<book/><book/>). Default value is false.
*/
wrapped: z.boolean().optional()
});
export {
XmlObjectSchema
};
//# sourceMappingURL=xml-object.js.map