MCPcopy Create free account
hub / github.com/authlib/authlib / validate_boolean_value

Function validate_boolean_value

authlib/oauth2/rfc8414/models.py:421–425  ·  view source on GitHub ↗
(metadata, key)

Source from the content-addressed store, hash-verified

419
420
421def validate_boolean_value(metadata, key):
422 if key not in metadata:
423 return
424 if metadata[key] not in (True, False):
425 raise ValueError(f'"{key}" MUST be boolean')

Calls

no outgoing calls

Tested by

no test coverage detected