Add convenience methods on ParameterSet
#1789
Labels
Component: Hooks
Extensibility and customization
Difficulty: Beginner
Ideal for newcomers
Hacktoberfest
Priority: Low
Cosmetic or low-impact changes
Milestone
It could be useful in hooks, e.g. to check whether
APIOperation
contains some header (we leave case-insensitive for a while).contains
method to the ParameterSet class, the method should acceptname
of typestr
get
method and check whether its result isNone
test/specs/openapi/parameters/test_simple_payloads.py
add a new functiontest_parameter_set_get
schema["/users"]["POST"].headers
inside this test and verify that it contains the header with the nameid
and does not contain the header with the nameunknown
The text was updated successfully, but these errors were encountered: