transmute-core icon indicating copy to clipboard operation
transmute-core copied to clipboard

optional 400 response

Open gsemet opened this issue 6 years ago • 2 comments

Please do not add the 400 response automatically in all api, some cannot fail.

Thanks

def get_swagger_operation(self, context=default_context):
        """
        get the swagger_schema operation representation.
        """
        consumes = produces = context.contenttype_serializers.keys()
        parameters = get_swagger_parameters(self.parameters, context)
        responses = {
            "400": Response({
                "description": "invalid input received",

gsemet avatar Nov 21 '17 23:11 gsemet