Programmatic building of JSON schemas (document and field mappings) with validation.