Schema Registry#

fetchez.schema#

Generic Schema Registry for the Fetchez Recipe Engine. Allows external domains (like Globato) to register custom recipe mutators.

copyright:
  1. 2010-2026 Regents of the University of Colorado

license:

MIT, see LICENSE for more details.

class fetchez.schema.BaseSchema[source]#

Bases: object

The generic base class for all recipe schemas.

name = 'base'#
classmethod apply(config)[source]#

Mutates and returns the recipe config. Subclasses must override this to inject their domain-specific rules.

class fetchez.schema.SchemaRegistry[source]#

Bases: object

Holds all registered schemas.

classmethod register(schema_class)[source]#

Allows external libraries to register their schemas.

classmethod apply_schema(config)[source]#

Looks for a schema in the config and applies its rules.