9 Repos
Systems that use class decorators to define metadata-driven validation constraints on object properties.
Distinct from Class Decorators: Existing candidates focus on instrumentation or design patterns, not the use of decorators for data validation schemas.
Explore 9 awesome GitHub repositories matching software engineering & architecture · Decorator-Based Validation. Refine with filters or upvote what's useful.
This project is a Python-based proxy pool manager that collects, validates, and serves free proxy IP addresses through an HTTP API. It consists of an automated scraper to gather addresses from multiple online sources, a persistent database-backed store for organization, and a delivery interface for retrieving validated proxies. The system features a pluggable scraper architecture that allows for the integration of custom discovery methods and source expansion via generator functions. It employs decorator-based validation logic, enabling the definition of custom connectivity and HTTPS criteria
Employs function decorators to define custom connectivity and HTTPS validation criteria.
class-validator is a TypeScript class validation library that uses decorators to define constraints and rules for object properties. It functions as a decorator-based schema validator that ensures data integrity and structural correctness through a combination of synchronous checks and promise-based asynchronous rules. The library provides a recursive validation system for checking complex data hierarchies, including nested classes and individual elements within collections. It includes an object property whitelist utility capable of stripping undocumented properties or blocking unknown field
Uses TypeScript decorators to define constraints and rules for object properties as metadata.
koro1FileHeader ist eine VSCode-Erweiterung, die dazu entwickelt wurde, automatisch standardisierte Kommentarblöcke am Anfang von Quelldateien zu generieren und zu aktualisieren. Sie dient als Dateimetadaten-Manager und automatischer Code-Dokumentierer, der Urheberschaft, Änderungszeiten und Dateipfade beim Speichern direkt im Code nachverfolgt. Das Tool synchronisiert Autorennamen und E-Mail-Adressen aus lokalen Git-Konfigurationen, um Header-Felder zu befüllen. Es verfügt zudem über einen Quellcode-Kommentar-Dekorateur, der in der Lage ist, dekorative Kommentar-Art und visuelle Muster einzufügen, um Code-Abschnitte zu organisieren. Die Erweiterung deckt ein breites Spektrum an Funktionen ab, einschließlich der automatischen Generierung von Funktions-Docstrings durch Parameterextraktion, vorlagenbasierter Anpassung für Urheberrechtshinweise und Lizenzen sowie sprachspezifischer Trennzeichenzuordnung. Sie enthält Filtermechanismen, um bestimmte Verzeichnisse oder Dateiendungen auszuschließen, und verwendet Änderungsdetektion, um triviale Metadaten-Updates rückgängig zu machen und so redundante Versionskontroll-Commits zu verhindern.
Merges file metadata with decorative patterns so a single block serves both documentation and style.
attrs is a Python library that automatically generates initialization, representation, equality, hashing, and ordering methods from declarative class attribute definitions. At its core, it provides a class decorator metaprogramming framework that intercepts class creation to rewrite the class body, producing dunder methods without manual boilerplate. The library includes a comprehensive attribute validation toolkit with built-in validators for type checks, range constraints, regex matching, length limits, and logical composition of validation rules. The library distinguishes itself through it
Provides the core decorator and field API for defining data classes with validators, converters, and defaults.
TypeSpec is a language for defining cloud API shapes and generating OpenAPI, JSON Schema, and client/server code from a single source of truth. It functions as a protocol-agnostic API designer that models REST, gRPC, and other API protocols using a unified, extensible syntax, with a decorator-based metadata system for attaching metadata, validation rules, and lifecycle visibility to API models and operations. The compiler produces OpenAPI 3.0 specifications and other artifacts, and the tool supports declaring API versions and tracking changes to models, properties, and operations across releas
Attaches metadata, validation rules, and lifecycle visibility to API models and operations using decorators.
Easy-peasy ist eine React-State-Management-Bibliothek und ein typisiertes Framework, das einen zentralen Store für die Verwaltung des globalen Anwendungszustands bereitstellt. Es fungiert als unveränderlicher (immutable) State-Store und asynchroner State-Orchestrator, der End-to-End-Typsicherheit für Zustandsdefinitionen, Aktionen und abgeleitete Werte gewährleistet. Die Bibliothek zeichnet sich dadurch aus, dass sie direkte Mutationssyntax in unveränderliche Updates umwandelt, um die Verwaltung verschachtelter Daten zu vereinfachen. Sie enthält einen Mechanismus zur Persistierung des State-Trees im Speicher und zur Rehydrierung während des Anwendungs-Boot-Prozesses, mit der Möglichkeit, die Benutzeroberfläche auszusetzen, bis die Rehydrierung abgeschlossen ist. Das Framework deckt mehrere Funktionsbereiche ab, einschließlich der Orchestrierung asynchroner API-Aufrufe mit optimistischem Rendering und der Berechnung zwischengespeicherter abgeleiteter Zustände. Es bietet zudem Tools zur Verwaltung nicht dringender Updates und für den Zugriff auf den Store außerhalb von React-Komponenten.
Uses TypeScript generics and class decorators to ensure strict type safety across the state management lifecycle.
Dataclasses-json is a library designed to facilitate the bidirectional conversion between Python data classes and JSON formats. It serves as a serialization tool that populates structured objects from raw data and transforms object instances into JSON strings, utilizing Python type hints to automate the mapping process. The library distinguishes itself by providing mechanisms for schema validation and runtime type coercion, ensuring that incoming data adheres to predefined model structures. It supports complex data requirements through recursive object traversal, which allows for the processi
Uses decorators to store serialization rules and configuration directly within data class definitions.
NestJS Access Control is a role-based and attribute-based authorization framework designed for the NestJS ecosystem. It provides a declarative system for securing application routes and resources, allowing developers to enforce granular access policies through metadata-driven decorators. The framework distinguishes itself by supporting hierarchical role inheritance, which enables the resolution of complex permission sets by traversing parent and child role relationships. It also facilitates dynamic authorization management, allowing security rules to be loaded asynchronously from external dat
Attaches security configuration to route handlers using metadata-driven decorators.
This project is a comprehensive backend framework built on NestJS, designed to accelerate the development of multi-tenant software-as-a-service applications. It provides a production-ready foundation that integrates essential infrastructure, including user authentication, subscription billing, and team management, into a modular, decorator-based architecture. The framework distinguishes itself by offering a complete suite of SaaS-specific orchestration tools, such as a built-in billing engine for managing recurring revenue and a multi-tenant database partitioning system. It also includes a ro
Uses metadata annotations on class methods to define routing, validation, and security guards.