Valerii Kuzivanov
Results
2
issues of
Valerii Kuzivanov
The problem occurs when you try to set a default value. For example: Joi.object().keys({ foo: Joi.number().valid([0, 1]).default(0) }) Nothing will return. I already found another way to do this it...
``` import asyncio import aiocontext context = aiocontext.Context() async def print_request(): print("Request ID:", context.get('request_id', 'unknown')) async def handle_request(): context['request_id'] = 42 await print_request() if __name__ == '__main__': loop = asyncio.get_event_loop()...