All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4k.contract.openapi.v2.extensions.kt Maven / Gradle / Ivy

There is a newer version: 5.31.0.0
Show newest version
package org.http4k.contract.openapi.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 - 2024 Weber Informatics LLC | Privacy Policy