It was present in `schema_components` but not in `schema`. This PR makes these two functions consistent. Without this parameter I had to duplicate the `schema()`'s logic to change the `ref_template` to be what I need.
Merged
sobolevn added a commit to sobolevn/msgspec that referenced this pull request
Apr 8, 2026Follow up to msgspec#983 Sorry, I've missed that `json.pyi` exists :( Without this change mypy is not happy: ``` » mypy . dmr/plugins/msgspec/schema.py:23: error: Unexpected keyword argument "ref_template" for "schema" [call-arg] .venv/lib/python3.13/site-packages/msgspec/json.pyi: note: "schema" defined here Found 1 error in 1 file (checked 472 source files) ```
Merged
jcrist pushed a commit that referenced this pull request
Apr 8, 2026Follow up to #983 Sorry, I've missed that `json.pyi` exists :( Without this change mypy is not happy: ``` » mypy . dmr/plugins/msgspec/schema.py:23: error: Unexpected keyword argument "ref_template" for "schema" [call-arg] .venv/lib/python3.13/site-packages/msgspec/json.pyi: note: "schema" defined here Found 1 error in 1 file (checked 472 source files) ```