Apply suggestions from code review

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
pull/79720/head
Brian Coca 2 months ago committed by Brian Coca
parent fe2ab20c37
commit 627566042a

@ -43,7 +43,7 @@ def restriction_to_spec(r):
name = 'required_if' name = 'required_if'
rest = [r['if'], r['equals'], r['required']] rest = [r['if'], r['equals'], r['required']]
else: else:
for ding in ('exclusive', 'toghether', 'one_of'): for ding in ('exclusive', 'together', 'one_of'):
if ding in r: if ding in r:
if isinstance(r[ding], string_types): if isinstance(r[ding], string_types):
@ -142,9 +142,9 @@ restrictions:
- description: You cannot use 'c' and 'x' at the same time - description: You cannot use 'c' and 'x' at the same time
exclusive: c, x exclusive: c, x
# required_toghether # required_together
- description: 'a' and 'b' required toghether - description: 'a' and 'b' required together
toghether: a, b together: a, b
# required_one_of # required_one_of
- description: at least one of a or b is required - description: at least one of a or b is required

Loading…
Cancel
Save