@scalar/openapi-types
Version:
Modern OpenAPI types
16 lines (15 loc) • 616 B
JavaScript
import { z } from "zod";
const LicenseObjectSchema = z.object({
/** REQUIRED. The license name used for the API. */
name: z.string().optional().nullable().catch(null),
/** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */
identifier: z.string().optional().catch(void 0),
/**
* A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field.
*/
url: z.string().url().optional().catch(void 0)
});
export {
LicenseObjectSchema
};
//# sourceMappingURL=license-object.js.map