"marshmallow-constant-required"

# `fields.Constant` with `required=True` flag raised `load_default` warning I have a schema containing a `Constant`, with `required=True` set, as the schema is ultimately exported to an OpenAPI spec, and the field must be marked as `required` there. The fix from #2894 now triggers the validation failure in https://github.com/marshmallow-code/marshmallow/blob/2a3812d5049c83e98db60a0869919521f97cd77d/src/marshmallow/fields.py#L216 My feeling on the fix is to undo the changes from #2894 and instead reproduce the `allow_none` flag initialization in `Constant.__init__` Happy to create a PR if you'd be happy with this fix.

This page does not claim that every requirement marked done was demonstrated able to fail first — either nothing is done yet, or one of the proofs could not be followed from the evidence in this repository.

1 requirement · 0 done and proved · 0 holding up the handover

UNTRANSLATED# `fields.Constant` with `required=True` flag raised `load_default` warning I have a schema containing a `Constant`, with `required=True` set, as the schema is ultimately exported to an OpenAPI spec, and the field must be marked as `required` there. The fix from #2894 now triggers the validation fai

Wringer said, and this board has no plain-English wording for it yetno gate proves this criterion, and its witness evidences nothing (the runner could not collect it (exit 2), so its red says nothing about the criterion — a witness red for a load failure turns green the moment any file of that name exists) — a human decides
What this page does not claim — Wringer's own words, unedited
For engineers