Default param values (#47)
This commit is contained in:
@ -1,12 +1,12 @@
|
||||
package org.leafygreens.kompendium.auth.util
|
||||
|
||||
import org.leafygreens.kompendium.annotations.KompendiumField
|
||||
import org.leafygreens.kompendium.annotations.PathParam
|
||||
import org.leafygreens.kompendium.annotations.QueryParam
|
||||
import org.leafygreens.kompendium.annotations.KompendiumParam
|
||||
import org.leafygreens.kompendium.annotations.ParamType
|
||||
|
||||
data class TestParams(
|
||||
@PathParam val a: String,
|
||||
@QueryParam val aa: Int
|
||||
@KompendiumParam(ParamType.PATH) val a: String,
|
||||
@KompendiumParam(ParamType.QUERY) val aa: Int
|
||||
)
|
||||
|
||||
data class TestRequest(
|
||||
|
@ -12,7 +12,7 @@
|
||||
"name" : "a",
|
||||
"in" : "path",
|
||||
"schema" : {
|
||||
"$ref" : "#/components/schemas/String"
|
||||
"type" : "string"
|
||||
},
|
||||
"required" : true,
|
||||
"deprecated" : false
|
||||
@ -20,7 +20,8 @@
|
||||
"name" : "aa",
|
||||
"in" : "query",
|
||||
"schema" : {
|
||||
"$ref" : "#/components/schemas/Int"
|
||||
"format" : "int32",
|
||||
"type" : "integer"
|
||||
},
|
||||
"required" : true,
|
||||
"deprecated" : false
|
||||
|
@ -12,7 +12,7 @@
|
||||
"name" : "a",
|
||||
"in" : "path",
|
||||
"schema" : {
|
||||
"$ref" : "#/components/schemas/String"
|
||||
"type" : "string"
|
||||
},
|
||||
"required" : true,
|
||||
"deprecated" : false
|
||||
@ -20,7 +20,8 @@
|
||||
"name" : "aa",
|
||||
"in" : "query",
|
||||
"schema" : {
|
||||
"$ref" : "#/components/schemas/Int"
|
||||
"format" : "int32",
|
||||
"type" : "integer"
|
||||
},
|
||||
"required" : true,
|
||||
"deprecated" : false
|
||||
|
@ -12,7 +12,7 @@
|
||||
"name" : "a",
|
||||
"in" : "path",
|
||||
"schema" : {
|
||||
"$ref" : "#/components/schemas/String"
|
||||
"type" : "string"
|
||||
},
|
||||
"required" : true,
|
||||
"deprecated" : false
|
||||
@ -20,7 +20,8 @@
|
||||
"name" : "aa",
|
||||
"in" : "query",
|
||||
"schema" : {
|
||||
"$ref" : "#/components/schemas/Int"
|
||||
"format" : "int32",
|
||||
"type" : "integer"
|
||||
},
|
||||
"required" : true,
|
||||
"deprecated" : false
|
||||
|
@ -12,7 +12,7 @@
|
||||
"name" : "a",
|
||||
"in" : "path",
|
||||
"schema" : {
|
||||
"$ref" : "#/components/schemas/String"
|
||||
"type" : "string"
|
||||
},
|
||||
"required" : true,
|
||||
"deprecated" : false
|
||||
@ -20,7 +20,8 @@
|
||||
"name" : "aa",
|
||||
"in" : "query",
|
||||
"schema" : {
|
||||
"$ref" : "#/components/schemas/Int"
|
||||
"format" : "int32",
|
||||
"type" : "integer"
|
||||
},
|
||||
"required" : true,
|
||||
"deprecated" : false
|
||||
|
@ -12,7 +12,7 @@
|
||||
"name" : "a",
|
||||
"in" : "path",
|
||||
"schema" : {
|
||||
"$ref" : "#/components/schemas/String"
|
||||
"type" : "string"
|
||||
},
|
||||
"required" : true,
|
||||
"deprecated" : false
|
||||
@ -20,7 +20,8 @@
|
||||
"name" : "aa",
|
||||
"in" : "query",
|
||||
"schema" : {
|
||||
"$ref" : "#/components/schemas/Int"
|
||||
"format" : "int32",
|
||||
"type" : "integer"
|
||||
},
|
||||
"required" : true,
|
||||
"deprecated" : false
|
||||
|
Reference in New Issue
Block a user