Skip to content

Instantly share code, notes, and snippets.

@GHkrishna
GHkrishna / launch.json
Last active November 28, 2024 12:34
This is a launch file for node projects in VScode debugger # To start the debugger go to: 'Run and debug' -> 'create a launch.json file' -> 'Nodejs' # A file will be created, paste the below contents
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Nest Framework",
"runtimeExecutable": "pnpm",
"runtimeArgs": [
@GHkrishna
GHkrishna / prescriptionSchema.json
Created December 8, 2024 19:59
prescriptionSchema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "2024-12-08T16:54:43.166Z-Prescription",
"type": "object",
"required": [
"@context",
"issuer",
"issuanceDate",
"type",
"credentialSubject"
{
"@context": [{
"@version": 1.1
},"https://www.w3.org/ns/odrl.jsonld", {
"ex": "https://example.org/examples#",
"schema": "http://schema.org/",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"3rdPartyCorrelation": "ex:3rdPartyCorrelation",
"AllVerifiers": "ex:AllVerifiers",
@GHkrishna
GHkrishna / Nestjs-global-validation-overriding.md
Last active June 12, 2025 20:50
NestJS Per DTO ValidationPipe Override | Customize Validation Options like whitelist, transform, forbidNonWhitelisted Per Class

📘 Description:

A clean workaround for overriding ValidationPipe options (like whitelist, transform, and forbidNonWhitelisted) per DTO in NestJS. Useful when you need dynamic fields in some classes while keeping strict validation globally. Includes custom decorator, extended validation pipe, and usage pattern. Inspired by NestJS GitHub issues and updated for modern NestJS projects.

Tags/keywords:

NestJS validation

NestJS ValidationPipe override