michangarrito/apps/backend/node_modules/@nestjs/swagger/dist/utils/get-schema-path.util.js
rckrdmrd 48dea7a5d0 feat: Initial commit - michangarrito
Marketplace móvil para negocios locales mexicanos.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React Web)
- apps/mobile (Expo/React Native)
- apps/mcp-server (Claude MCP Server)
- apps/whatsapp-service (WhatsApp Business API)
- database/ (PostgreSQL DDL)
- docs/ (Documentación)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:41:02 -06:00

16 lines
536 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.refs = exports.getSchemaPath = void 0;
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
function getSchemaPath(model) {
const modelName = (0, shared_utils_1.isString)(model) ? model : model && model.name;
return `#/components/schemas/${modelName}`;
}
exports.getSchemaPath = getSchemaPath;
function refs(...models) {
return models.map((item) => ({
$ref: getSchemaPath(item.name)
}));
}
exports.refs = refs;