Default param values (#47)

This commit is contained in:
Ryan Brink
2021-05-05 21:33:17 -04:00
committed by GitHub
parent 938a604285
commit f23016e878
42 changed files with 679 additions and 490 deletions

View File

@ -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(

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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