from apiflask import Schema from apiflask.fields import String, Float class UserInfoIn(Schema): nickname = String() height = Float() class UserInfoOut(Schema): nickname = String() avatar_id = String() height = Float(allow_nan=True)