-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
An Api operation with swagger-annotations_2.10-1.3.0 implicit param like this:
@ApiImplicitParams(value = {
@ApiImplicitParam(
name = "Authorization",
paramType = "header",
value = "blah blah blah",
required = true
),
Generates json like this:
parameters: [
{
name: "Authorization",
description: "blah blah blah",
required: true,
allowMultiple: false,
type: "",
paramType: "header"
},
Which causes the UI to generate empty resource_xyz
elements, so clicking on them has no effect.
Adding:
dataType = "string",
solves the problem. Perhaps the dom generation code could consider string as default type for implicit params? Or the annotation itself could provide a default value? The failure is silent so can take a while to figure out.
Metadata
Metadata
Assignees
Labels
No labels