Skip to main content

ok

Returns a dictionary containing the provided value associated with the key 'ok'.

def ok(
value: any
) - > dict

Wraps a value in a dictionary with an 'ok' key to indicate a successful operation result.

Parameters

NameTypeDescription
valueanyThe data or status value to be returned as part of a successful response.

Returns

TypeDescription
dictA dictionary containing the provided value mapped to the key 'ok'.