// runtime/shared/openapi/errors.ts
var OpenApiPeerDepMissingError = class extends Error {
  name = "OpenApiPeerDepMissingError";
  constructor(message) {
    super(
      message ?? "OpenApiRegistry requires @anatine/zod-openapi. Install it: bun add @anatine/zod-openapi"
    );
  }
};
var DuplicateSchemaError = class extends Error {
  constructor(schemaName) {
    super(
      `DuplicateSchemaError: schema '${schemaName}' is already registered. Each schema name must be unique within the OpenApiRegistry.`
    );
    this.schemaName = schemaName;
  }
  schemaName;
  name = "DuplicateSchemaError";
};

export {
  OpenApiPeerDepMissingError,
  DuplicateSchemaError
};
//# sourceMappingURL=chunk-YSLTTQLC.js.map