org.http4k.contract.jsonschema.v2.extensions.kt Maven / Gradle / Ivy
package org.http4k.contract.jsonschema.v2
import org.http4k.lens.ParamMeta
import org.http4k.lens.ParamMeta.ArrayParam
import org.http4k.lens.ParamMeta.BooleanParam
import org.http4k.lens.ParamMeta.FileParam
import org.http4k.lens.ParamMeta.IntegerParam
import org.http4k.lens.ParamMeta.NullParam
import org.http4k.lens.ParamMeta.NumberParam
import org.http4k.lens.ParamMeta.ObjectParam
val ParamMeta.value
get() = when (this) {
is ArrayParam -> "array"
ObjectParam -> "object"
BooleanParam -> "boolean"
IntegerParam -> "integer"
FileParam -> "file"
NumberParam -> "number"
NullParam -> "null"
else -> "string"
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy