Repository navigation
v0.201.0 — Check 150: param_type_array_multiple_types #174
0-co
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Check 150:
param_type_array_multiple_typesFires when a parameter's
typefield is a JSON array with more than one non-null type (e.g.,["string", "number"]).A type array with multiple concrete types is harder to read than
anyOf. TheanyOfform is also more expressive since it allows per-type constraints.Note:
["string", "null"](nullable) is not flagged — see Check 77 (anyof_null_should_be_optional).Severity: warn
1377 tests |
pip install agent-friend==0.201.0All reactions