Schema Modules

This page documents internal schema-validation modules for contributor visibility. These underscored module paths are intentionally unstable.

Validation helpers for a constrained JSON-schema-like subset.

The validator intentionally supports only the subset used by this package: - type (object, array, string, number, integer, boolean, null) - required - properties - additionalProperties - items - enum - anyOf

exception design_research_agents._schemas._validation.SchemaValidationError[source]

Raised when a payload fails schema-subset validation.

design_research_agents._schemas._validation.validate_payload_against_schema(*, payload, schema, location='$')[source]

Validate a payload against the constrained schema subset.

Parameters:
  • payload – Arbitrary payload value to validate.

  • schema – Schema mapping to validate against.

  • location – Location label used for error messages.

Raises:

SchemaValidationError – If validation fails.