3 مستودعات
Utilities for applying functions to transform object keys into a new object structure.
Distinct from Object Mapping: Candidates focus on reflection-based mapping or serialization, not functional key transformation.
Explore 3 awesome GitHub repositories matching data & databases · Key Transformers. Refine with filters or upvote what's useful.
Active Model Serializers is a Ruby on Rails JSON serializer used to transform model objects and associations into structured JSON responses for APIs. It functions as a model-to-JSON mapper and response formatter that decouples internal database schemas from external API contracts. The project utilizes a pluggable adapter pattern to organize serialized data according to specific standards, such as the JSON API specification. It provides a mechanism to map internal attributes to custom JSON keys and implements a serialization scope that allows for attribute and association filtering based on au
Implements global and class-level formatting rules to convert attribute keys into specific casing styles.
Jbuilder هو محرك قوالب ومنشئ JSON للغة Ruby يوفر لغة خاصة بالمجال (DSL) لإنشاء كائنات JSON منظمة. يعمل كمساعد عرض لتحويل البيانات إلى تنسيق JSON باستخدام المنطق، والشروط، والحلقات. يتيح المشروع بناء هياكل بيانات معقدة من خلال استخدام الأجزاء (partials) والكائنات المتداخلة للحفاظ على النمطية. ويتضمن قدرات لتحويل المفاتيح في وقت التشغيل، مما يسمح بتحويل مفاتيح السمات بين اصطلاحات تسمية مختلفة مثل snake case وcamel case. يدعم النظام هيكلة JSON الديناميكية مع القدرة على تحديد المفاتيح في وقت التشغيل وإدارة مخرجات قيم null. كما يوفر آلية لتخزين أجزاء JSON المعروضة مؤقتاً لتقليل المعالجة المتكررة.
Provides utilities to convert attribute keys between casing styles like snake_case and camelCase during serialization.
Absinthe هو تنفيذ لخادم GraphQL ومحرك استعلام لنظام Elixir البيئي. يوفر مجموعة الأدوات الأساسية لبناء واجهات برمجة تطبيقات GraphQL، بما في ذلك محرك معالجة يقوم بتحليل، والتحقق من، وتنفيذ المستندات مقابل مخطط تطبيق محدد. يتضمن المشروع حلالاً (resolver) دفعياً لتحسين أداء قاعدة البيانات عن طريق تجميع طلبات الحقول، وحارس تعقيد لحماية موارد النظام عن طريق رفض الاستعلامات التي تتجاوز حدود التكلفة المحددة. كما يتميز بمحول مخطط يترجم اصطلاحات التسمية الداخلية لـ Elixir إلى صيغة GraphQL الخارجية لتوافق العميل. يدعم نموذج التنفيذ حل الحقول غير المتزامن وخط معالجة قائماً على البرمجيات الوسيطة (middleware) لمعالجة الاستعلامات المخصصة. تغطي الإمكانيات الإضافية تحليل تكلفة الاستعلام، والحل القائم على المخطط، والقدرة على تخصيص منطق المحلل والتحقق.
Includes utilities to convert field names between snake_case and camelCase for client compatibility.