fix: handle None case

This commit is contained in:
Hangfei Lin 2025-05-03 14:35:40 -07:00 committed by GitHub
parent a6b3c23f74
commit 88fe4c58a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,7 +83,8 @@ class OperationParser:
schema.description = ( schema.description = (
description if not schema.description else schema.description description if not schema.description else schema.description
) )
required = param.required # param.required can be None
required = param.required if param.required else False
self.params.append( self.params.append(
ApiParameter( ApiParameter(