Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.simiacryptus.skyenet.util
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
// OpenAPI root document
data class OpenAPI(
val openapi: String = "3.0.0",
val info: Info? = null,
val paths: Map? = emptyMap(),
@JsonInclude(JsonInclude.Include.NON_NULL)
val components: Components? = null
)
// Metadata about the API
data class Info(
val title: String? = null,
val version: String? = null,
val description: String? = null,
val termsOfService: String? = null,
val contact: Contact? = null,
val license: License? = null
)
// Contact information
data class Contact(
val name: String? = null,
val url: String? = null,
val email: String? = null
)
// License information
data class License(
val name: String? = null,
val url: String? = null
)
// Paths and operations
data class PathItem(
val get: Operation? = null,
val put: Operation? = null,
val post: Operation? = null,
val delete: Operation? = null,
val options: Operation? = null,
val head: Operation? = null,
val patch: Operation? = null
)
// An API operation
data class Operation(
val summary: String? = null,
val description: String? = null,
val responses: Map? = emptyMap(),
val parameters: List? = emptyList(),
val operationId: String? = null,
val requestBody: RequestBody? = null,
val security: List