Skip to content

Commit

Permalink
Replacing JsonDocument with a trait that uses JsonWrapper for better …
Browse files Browse the repository at this point in the history
…flexibility and simplification.
  • Loading branch information
darkfrog26 committed Feb 29, 2024
1 parent 27a3664 commit 7caf5e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 24 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ val scala3 = "3.3.1"

name := "scarango"
ThisBuild / organization := "com.outr"
ThisBuild / version := "3.19.2"
ThisBuild / version := "3.19.3-SNAPSHOT"
ThisBuild / scalaVersion := scala213
ThisBuild / crossScalaVersions := List(scala3, scala213)
ThisBuild / scalacOptions ++= Seq("-unchecked", "-deprecation")
Expand Down
6 changes: 5 additions & 1 deletion core/src/main/scala/com/outr/arango/json/JsonDocument.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ package com.outr.arango.json
import com.outr.arango.{Document, Id}
import fabric._

case class JsonDocument(json: Json, _id: Id[JsonDocument]) extends Document[JsonDocument]
/**
* JsonDocument is a convenience class that extends Document and JsonWrapper to provide a simple way to work with
* ArangoDB documents that are stored as JSON.
*/
trait JsonDocument extends Document[JsonDocument] with JsonWrapper
22 changes: 0 additions & 22 deletions core/src/main/scala/com/outr/arango/json/JsonDocumentModel.scala

This file was deleted.

0 comments on commit 7caf5e6

Please sign in to comment.