com.lightningkite.lightningserver.jsonschema.models.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of server-core Show documentation
Show all versions of server-core Show documentation
A set of tools to fill in/replace what Ktor is lacking in.
The newest version!
@file:UseContextualSerialization(UUID::class)
package com.lightningkite.lightningserver.jsonschema
import com.lightningkite.lightningdb.GenerateDataClassPaths
import com.lightningkite.lightningdb.HasId
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseContextualSerialization
import java.util.*
@Serializable
@GenerateDataClassPaths
data class Post(
override val _id: UUID = UUID.randomUUID(),
val author: String,
val title: String,
val content: String
) : HasId