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

com.melvinlow.json.schema.JsonSchemaEncoder.scala Maven / Gradle / Ivy

package com.melvinlow.json.schema

import io.circe.Json

trait JsonSchemaEncoder[T] {
  def schema: Json
}

object JsonSchemaEncoder {
  inline def ev[T](using ev: JsonSchemaEncoder[T]): JsonSchemaEncoder[T] = ev

  inline def apply[T: JsonSchemaEncoder]: JsonSchemaEncoder[T] = ev

  inline def apply[T: JsonSchemaEncoder](
    inline dummy: T
  ): JsonSchemaEncoder[T] = ev
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy