kuwata-lab.com
  • Home
  • Kwartz
  • Kwalify
  • Kook
  • Erubis
  • Tenjin
  • Oktest

Kwalify User's Guide (for Ruby)

makoto kuwata <kwa(at)kuwata-lab.com>
release: $Release: $
last update: $Date$

Preface

Kwalify(*1) is a parser, schema validator, and data binding tool for YAML and JSON. Kwalify enables you to handle YAML and JSON more easily and strictly.

Topics:

  • Schema validation for YAML and JSON
  • Class definition generation for Ruby, PHP, and Java
  • Data binding
  • Preceding alias
(*1)
Pronounce as 'Qualify'.

Table of Contents

  • Preface
    • Table of Contents
  • Chapter 1   Schema Definition
    • 1-1   Sequence
    • 1-2   Mapping
    • 1-3   Sequence of Mapping
    • 1-4   Mapping of Sequence
    • 1-5   Rule and Constraint
    • 1-6   Unique constraint
  • Chapter 2   Tips
    • 2-1   JSON
    • 2-2   Anchor and Alias
    • 2-3   Default of Mapping
    • 2-4   Merging Mappings
  • Chapter 3   How to in Ruby
    • 3-1   Validation
    • 3-2   Parsing with Validation
    • 3-3   Meta Validation
    • 3-4   Validator#validator_hook()
    • 3-5   Preceding Alias
    • 3-6   Data Binding
  • Chapter 4   Actions
    • 4-1   Class Definition Generation
  • Chapter 5   References
    • 5-1   Usage in Command-Line
Next>>

copyright© 2004-2011 kuwata-lab.com all rights reserved.