{"id":21948118,"url":"https://github.com/evolution-gaming/derivation","last_synced_at":"2025-06-22T06:04:55.916Z","repository":{"id":43603687,"uuid":"506717795","full_name":"evolution-gaming/derivation","owner":"evolution-gaming","description":"Configured derivation library for scala 3","archived":false,"fork":false,"pushed_at":"2024-09-11T17:37:56.000Z","size":167,"stargazers_count":35,"open_issues_count":14,"forks_count":6,"subscribers_count":3,"default_branch":"base","last_synced_at":"2025-04-23T00:16:24.832Z","etag":null,"topics":["derivation","scala","scala3","typeclasses"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evolution-gaming.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-06-23T16:42:13.000Z","updated_at":"2025-02-17T15:51:25.000Z","dependencies_parsed_at":"2024-09-12T01:15:41.883Z","dependency_job_id":"b71da1bd-8ff1-4075-b528-ec3b229d832c","html_url":"https://github.com/evolution-gaming/derivation","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/evolution-gaming/derivation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fderivation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fderivation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fderivation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fderivation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evolution-gaming","download_url":"https://codeload.github.com/evolution-gaming/derivation/tar.gz/refs/heads/base","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Fderivation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261244016,"owners_count":23129640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["derivation","scala","scala3","typeclasses"],"created_at":"2024-11-29T05:12:04.681Z","updated_at":"2025-06-22T06:04:50.868Z","avatar_url":"https://github.com/evolution-gaming.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Derivation\n\n [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.evolution/derivation-core_3/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.evolution/derivation-core_3)\n[![Sonatype Nexus (Snapshots) badge](https://img.shields.io/nexus/s/https/s01.oss.sonatype.org/com.evolution/derivation-core_3.svg)](https://s01.oss.sonatype.org/content/repositories/snapshots/com/evolution/derivation-core_3/)\n [![Build](https://github.com/evolution-gaming/derivation/actions/workflows/scala.yml/badge.svg)](https://github.com/evolution-gaming/derivation/actions/workflows/scala.yml)\n\nA derivation library for scala 3 with annotation based configuration.\n\n## Usage\n\nThis library os being published to the macen central. Add library to your project as\n\n```sbt\naddSbtPlugin(\"com.evolution\" % \"sbt-artifactory-plugin\" % \"0.0.2\")\n\nlibraryDependencies += \"com.evolution\" %% \"derivation-circe\" % \"{version}\"\n```\n\nFinally, define your own type, which derives circe instances\n\n\n```scala\nimport evo.derivation.*\nimport evo.derivation.circe.*\nimport evo.derivation.config.Config\nimport java.util.UUID\n\n@SnakeCase\n@Discriminator(\"type\")\nenum User derives Config, EvoCodec:\n    case AuthorizedClient(@Rename(\"client_id\") id: UUID, name: String)\n    case Anonymous\n```\n\n\n## Annotation reference\n\n### `@SnakeCase`\n Transforms all the constructor and\\or field names to the snake case\n\n### `@Discriminator(name: String)`\n Defines discriminator field for serialization of `sealed trait` or `enum`\n\n### `@Rename(name: String)`\n\n Renames single `case class` field or `enum` constructor\n\n### `@Embed`\nWrite\\Reads all inner fields of some field on the upper level during serialization\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Fderivation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevolution-gaming%2Fderivation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Fderivation/lists"}