how to limit the discount number from Cart and Checkout Validation Function

how to limit the discount number from Cart and Checkout Validation Function, the docs is no exist ‘graphql input’ about discount