The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Changes for version 0.10 - 2013-01-11

  • 0.09 was also broken, sorry.
  • ENHANCEMENTS
    • Now follow Sah 0.9.23 spec (previously 0.9.19).
    • Basic human compiler now works, with English and Indonesian translation. The Perl compiler is now using error messages produced by the human compiler. Error message also now indicates data path, e.g. if there is an error in the second element of array data, it shows '@1'.
    • Line number when logging generated validator/schema code can be omitted by setting environment variable LINENUM=0.
  • INCOMPATIBLE CHANGES
    • Rename compile option 'mark_fallback' to 'mark_missing_translation' to make it clearer.
  • REMOVED FEATURES
    • Remove min
  • BUG FIXES
    • Subcompilation now uses all options from parent (except those that need to be set/changed by the subcompilation).
    • Various fixes and refactorings.

Documentation

Extending Data::Sah

Modules

Fast and featureful data structure validation
Base class for Sah compilers (Data::Sah::Compiler::*)
Base class for programming language compilers
Base class for programming-language emiting compiler's type handlers
Base class for type handlers
Role for compilers that produce text result (array of lines)
Compile Sah schema to human language
Base class for human type handlers
human's type handler for role "Comparable"
human's type handler for role "HasElems"
human's type handler for role "Sortable"
perl's type handler for type "all"
perl's type handler for type "any"
human's type handler for type "array"
perl's type handler for type "bool"
perl's type handler for type "code"
human's type handler for type "num"
human's type handler for type "hash"
human's type handler for type "int"
human's type handler for type "num"
perl's type handler for type "obj"
perl's type handler for type "re"
perl's type handler for type "str"
Compile Sah schema to Perl code
Base class for perl type handlers
perl's type handler for type "all"
perl's type handler for type "any"
perl's type handler for type "array"
perl's type handler for type "bool"
perl's type handler for type "code"
perl's type handler for type "float"
perl's type handler for type "hash"
perl's type handler for type "int"
perl's type handler for type "num"
perl's type handler for type "obj"
perl's type handler for type "re"
perl's type handler for type "str"
Language routines
fr_FR locale
id_ID locale
zh_CN locale
Collection of common schemas
Collection of schemas related to Sah
Comparable type role
Role for sortable types
Sah utility routines for adding function
Sah utility routines for roles
Sah utility routines for type extensions