reject_solver_time_span_pre_v13
Stable function · Other
Tier: stable · Kind: function · Topic: Other
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
reject_solver_time_span_pre_v13 | rejectSolverTimeSpanPreV13 | reject_solver_time_span_pre_v13 | reject_solver_time_span_pre_v13 | RejectSolverTimeSpanPreV13 |
Julia
reject_solver_time_span_pre_v13(raw_data)
reject_solver_time_span_pre_v13(raw_data)
Reject solver.time_span in a file declaring esm < 1.3.0.
The field arrives at esm: 1.3.0; a document declaring an earlier version whose
solver block carries it is rejected with solver_time_span_version_too_old
at /solver/time_span (esm-spec §2.2.4 requirement 4). Runs before schema
validation, beside reject_solver_external_pre_v13
.
TypeScript
function rejectSolverTimeSpanPreV13(view: unknown): void
Reject solver.time_span in a file declaring esm < 1.3.0.
time_span arrives at esm: 1.3.0; a 1.1.0 or 1.2.0 document whose solver
block carries it is rejected with solver_time_span_version_too_old at
/solver/time_span (esm-spec §2.2.4 requirement 4), before schema
validation. Below 1.1.0 the whole block is refused first, by
rejectSolverPreV11
.
Python
reject_solver_time_span_pre_v13(view: Any) -> None
Reject solver.time_span in a file declaring esm < 1.3.0.
The field arrives at esm: 1.3.0; an earlier document whose solver
block carries it is rejected with solver_time_span_version_too_old at
/solver/time_span (esm-spec §2.2.4 requirement 4), before schema
validation. A document below 1.1.0 never reaches this gate:
reject_solver_pre_v11
refuses its whole block first.
Rust
pub fn reject_solver_time_span_pre_v13(view: &Value) -> Result<(), DiagnosticError>
Reject solver.time_span in a file declaring esm < 1.3.0.
The field arrives at esm: 1.3.0, after the block itself, so it carries
its own code (esm-spec §2.2.4 requirement 4). A 1.1.0 or 1.2.0 document
whose block has no time_span stays valid. Below 1.1.0 the whole block is
already refused by reject_solver_pre_v11
, which runs first. Reads the
ROOT’s block only: a mounted document’s solver block does not cross the
mount edge (§4.7).
Go
func RejectSolverTimeSpanPreV13(view map[string]any) error
RejectSolverTimeSpanPreV13 rejects solver.time_span in files declaring esm < 1.3.0 with solver_time_span_version_too_old at /solver/time_span (esm-spec §2.2.4 requirement 4). A 1.1.0 or 1.2.0 document whose solver block carries no time_span stays valid. Below 1.1.0 the whole block is already refused by RejectSolverPreV11, which runs first.