de.lancom.openapi.jackson.Wrapper.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-parser Show documentation
Show all versions of openapi-parser Show documentation
This open-source project provides an OpenAPI 3.0 Parser implemented in Kotlin, utilizing immutable data classes
package de.lancom.openapi.jackson
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.node.ObjectNode
import de.lancom.openapi.entity.Entity
import de.lancom.openapi.entity.Extension
import de.lancom.openapi.entity.RawExtension
import de.lancom.openapi.entity.TagGroupsExtension
import de.lancom.openapi.field.Field
import de.lancom.openapi.field.getFields
import de.lancom.openapi.refs.Instance
import de.lancom.openapi.refs.Reference
import de.lancom.openapi.refs.ReferenceOrInstance
import de.lancom.openapi.refs.Referenceable
import de.lancom.openapi.tools.jsonMapper
data class Wrapper(
val jsonNodeField: Field,
) {
val field: Field by lazy {
jsonNodeField.mapField(::Wrapper)
}
val mapField: Field