Skip to content
StackPractices

Tag: validation

Browse 12 practical software engineering resources tagged with "validation". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving validation.

Format Phone Numbers

How to format and validate phone numbers in Python, Java, and JavaScript.

Validate DataFrame Schemas with Pandera

How to validate pandas and Polars DataFrame schemas with Pandera, covering column types, constraints, custom checks, hypothesis testing, and schema inheritance.

Validate JSON Schema

How to validate JSON data against schemas in Python, Java, and JavaScript.

Node.js File Upload Validation: Type, Size, and Content

Validate file uploads in Node.js with multer for type, size, and content

Form Validation with react-hook-form and Zod

How to build type-safe forms in React using react-hook-form with Zod schema validation, including nested fields, async validation, and dynamic fields.

Custom GraphQL Scalar Types for Dates, Emails, and JSON

Define custom GraphQL scalars for Date, Email, URL, and JSON fields with serialization, parsing, and validation logic

Validate and Sanitize GraphQL Input Types Server-Side

Implement centralized input validation in GraphQL using custom validation functions, Zod schemas, and input type transforms

Gatekeeper Pattern

Place a validation and security boundary at the edge of a system to inspect, sanitize, and authenticate all incoming requests before they reach internal services.

GraphQL Mutation Validation Pattern

Centralize input validation for GraphQL mutations using custom validators, schema directives, and structured error responses.

Data Quality Rules Template

A template for defining data validation rules per dataset and column: completeness, consistency, accuracy, timeliness, and uniqueness checks.

Data Migration Runbook Template

A runbook template for safely migrating data between systems including pre-migration checks, rollback procedures, and post-migration validation.

Data Quality Guide: Validation, Profiling, Great

Master data quality: validation frameworks, profiling, schema enforcement, anomaly detection, and monitoring with Great Expectations, Pandera, and Soda for reliable pipelines.