UNPKG

@nestjs/swagger

Version:

OpenAPI for NestJS: generate the API document from controllers and decorators, serve Swagger UI, and derive request types with mapped types.

7 lines (6 loc) • 226 B
import { DECORATORS } from '../constants.js'; export function ApiHideProperty() { return (target, propertyKey) => { Reflect.defineMetadata(DECORATORS.API_MODEL_PROPERTY_HIDDEN, true, target, propertyKey); }; }