-
We have some REST endpoints that use a This is how enums are normally generated, in this case "/api/image/{hash}/{format}" : {
"get" : {
"parameters" : [ {
"name" : "format",
"in" : "path",
"required" : true,
"schema" : {
"$ref" : "#/components/schemas/Format"
},
"allowEmptyValue" : false
}
}
}
"components" : {
"schemas" : {
"Format" : {
"enum" : [ "PRINT", "SCREEN", "THUMBNAIL" ],
"type" : "string"
}
}
} However, with "/api/changed/last/{n}/{timeunit}" : {
"get" : {
"parameters" : [ {
"name" : "timeunit",
"in" : "path",
"required" : true,
"schema" : {
"type" : "object"
},
"allowEmptyValue" : false
} ]
}
} So I don't get the nice drop-down with the enum values, but just a generic text box for JSON. Is this a specific problem for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
@cristalp I think this is because it's a JDK class and the Maven plugin doesn't include those classes in the index that is scanned. Thus, it ends up being a "black box" to the scanner. Perhaps there could be an option to index the JDK classes (disabled by default) or something similar. You could also specify the |
Beta Was this translation helpful? Give feedback.
Oops, sorry I copied the wrong configuration name... it should be this: