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

Function validate_array_value

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

Source from the content-addressed store, hash-verified

404
405
406def validate_array_value(metadata, key):
407 values = metadata.get(key)
408 if values is not None and not isinstance(values, list):
409 raise ValueError(f'"{key}" MUST be JSON array')
410
411
412def validate_language_tags_array(metadata, key):

Calls 1

getMethod · 0.45

Tested by

no test coverage detected