parseWithContext method

  1. @protected
SchemaResult<Runtime> parseWithContext(
  1. Object? value,
  2. SchemaContext context
)

Decodes a boundary value into a runtime value.

The default delegates to validateRuntimeWithContext, which is correct for schemas whose parse is just runtime validation. Composite and codec schemas override this to implement boundary-shape-specific logic.

Implementation

@protected
SchemaResult<Runtime> parseWithContext(
  Object? value,
  SchemaContext context,
) => validateRuntimeWithContext(value, context);