PrefectHQ
prefect
BlogDocsChangelog

keep `DeploymentCreate.parameter_openapi_schema` field `Optional`

#19089Merged
Comparing
keep-parameter-schema-optional
(
02a2ba0
) with
main
(
c3b62cf
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

Passed

bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
+1%
459.7 µs456.8 µs
bench_import_prefect_flow
benches/bench_import.py
CodSpeed Performance Gauge
0%
1.3 s1.3 s

Ignored

bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-4%
154.3 ms160.9 ms
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+1%
164.4 ms162.3 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-10%
5.1 ms5.7 ms
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-4%
4.5 ms4.7 ms
bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-6%
106.1 ms113 ms

Commits

Click on a commit to change the comparison range
Base
main
c3b62cf
+0.35%
keep DeploymentCreate.parameter_openapi_schema Optional for Cloud compat changed DeploymentCreate.parameter_openapi_schema back to Optional to maintain compatibility with Prefect Cloud, which may send null values. the BeforeValidator still normalizes {} to valid schema, and the client code converts None to {} before passing to the schema, so normalization still works correctly. behavior: - None input: stays None (Cloud compat) - {} input: normalized to {"type": "object", "properties": {}} - omitted: gets default {"type": "object", "properties": {}} - client code: converts None to {} so users get valid schema 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
02a2ba0
7 days ago
by zzstoatzz
© 2025 CodSpeed Technology
Home Terms Privacy Docs