dynamicschema 2.0.0
The DynamicSchema gem provides a elegant and expressive way to define a domain-specific language (DSL) schemas, making it effortless to build and validate complex Ruby hashes. This is particularly useful when dealing with intricate configurations or interfacing with external APIs, where data structures need to adhere to specific formats and validations. By allowing default values, type constraints, nested schemas, and transformations, DynamicSchema ensures that your data structures are both robust and flexible. New in 2.0, DynamicSchema adds DynamicSchema::Struct which faciliates effortless definition and construction of complex object hierarchies, with optional type coersion and validation. Where DynamicSchema simplified configuration and API payload construction, DynamicSchema::Struct simplifies construction of complex API reponses.
Gemfile:
=
安装:
=
版本列表:
- 2.0.0 September 06, 2025 (19.0 KB)
- 1.0.1 July 28, 2025 (15.5 KB)
- 1.0.0 June 06, 2025 (15.5 KB)
- 1.0.0.beta04 November 04, 2024 (16.0 KB)
- 1.0.0.beta03 October 27, 2024 (16.0 KB)