fix: add missing mapping of BooleanEnrichment to EnrichmentHandler (#655)
This commit is contained in:

committed by
GitHub

parent
4a9165fd3a
commit
636bf65c36
@ -10,6 +10,7 @@ import io.bkbn.kompendium.core.fixtures.TestSimpleRequest
|
||||
import io.bkbn.kompendium.core.metadata.GetInfo
|
||||
import io.bkbn.kompendium.core.metadata.PostInfo
|
||||
import io.bkbn.kompendium.core.plugin.NotarizedRoute
|
||||
import io.bkbn.kompendium.enrichment.BooleanEnrichment
|
||||
import io.bkbn.kompendium.enrichment.CollectionEnrichment
|
||||
import io.bkbn.kompendium.enrichment.MapEnrichment
|
||||
import io.bkbn.kompendium.enrichment.NumberEnrichment
|
||||
@ -63,6 +64,9 @@ fun Route.enrichedSimpleRequest() {
|
||||
deprecated = true
|
||||
}
|
||||
}
|
||||
TestSimpleRequest::c {
|
||||
BooleanEnrichment("blah-blah-blah") { }
|
||||
}
|
||||
}
|
||||
)
|
||||
description("A test request")
|
||||
|
@ -109,11 +109,15 @@
|
||||
"b": {
|
||||
"type": "number",
|
||||
"format": "int32"
|
||||
},
|
||||
"c": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"a",
|
||||
"b"
|
||||
"b",
|
||||
"c"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -109,11 +109,15 @@
|
||||
"b": {
|
||||
"type": "number",
|
||||
"format": "int32"
|
||||
},
|
||||
"c": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"a",
|
||||
"b"
|
||||
"b",
|
||||
"c"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -109,11 +109,15 @@
|
||||
"b": {
|
||||
"type": "number",
|
||||
"format": "int32"
|
||||
},
|
||||
"c": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"a",
|
||||
"b"
|
||||
"b",
|
||||
"c"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -144,11 +144,15 @@
|
||||
"b": {
|
||||
"type": "number",
|
||||
"format": "int32"
|
||||
},
|
||||
"c": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"a",
|
||||
"b"
|
||||
"b",
|
||||
"c"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -111,11 +111,15 @@
|
||||
"type": "number",
|
||||
"format": "int32",
|
||||
"deprecated": true
|
||||
},
|
||||
"c": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"a",
|
||||
"b"
|
||||
"b",
|
||||
"c"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -76,11 +76,15 @@
|
||||
"type": "number",
|
||||
"format": "int32",
|
||||
"deprecated": true
|
||||
},
|
||||
"c": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"a",
|
||||
"b"
|
||||
"b",
|
||||
"c"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -111,11 +111,15 @@
|
||||
"type": "number",
|
||||
"format": "int32",
|
||||
"deprecated": true
|
||||
},
|
||||
"c": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"a",
|
||||
"b"
|
||||
"b",
|
||||
"c"
|
||||
]
|
||||
},
|
||||
"TestSimpleRequest-blah-blah": {
|
||||
@ -129,11 +133,15 @@
|
||||
"type": "number",
|
||||
"format": "int32",
|
||||
"deprecated": true
|
||||
},
|
||||
"c": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"a",
|
||||
"b"
|
||||
"b",
|
||||
"c"
|
||||
]
|
||||
},
|
||||
"List-TestSimpleRequest-blah-blah": {
|
||||
|
@ -64,11 +64,15 @@
|
||||
"type": "number",
|
||||
"format": "int32",
|
||||
"deprecated": true
|
||||
},
|
||||
"c": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"a",
|
||||
"b"
|
||||
"b",
|
||||
"c"
|
||||
]
|
||||
},
|
||||
"TestSimpleRequest-blah": {
|
||||
@ -82,11 +86,15 @@
|
||||
"type": "number",
|
||||
"format": "int32",
|
||||
"deprecated": true
|
||||
},
|
||||
"c": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"a",
|
||||
"b"
|
||||
"b",
|
||||
"c"
|
||||
]
|
||||
},
|
||||
"Map-String-TestSimpleRequest-blah": {
|
||||
|
@ -23,7 +23,8 @@ data class TestRequest(
|
||||
@Serializable
|
||||
data class TestSimpleRequest(
|
||||
val a: String,
|
||||
val b: Int
|
||||
val b: Int,
|
||||
val c: Boolean
|
||||
)
|
||||
|
||||
@Serializable
|
||||
|
Reference in New Issue
Block a user