wikidb.find_schema

wikidb

find_schema(manifest, name) -> schema

Find a schema by name and prepare it for validation

The prepared schema keeps fields in declared order, for forms, and adds by_name for lookups. A nil name, an unknown one and a schema with no fields list all answer nil.