Allow custom json

Refs: #2334
This commit is contained in:
eikek
2023-11-12 18:48:43 +01:00
parent 83ad2c5044
commit 212c10e20a
3 changed files with 3 additions and 5 deletions

View File

@ -8251,9 +8251,8 @@ components:
is discarded. E-mails that don't have any attachments are is discarded. E-mails that don't have any attachments are
skipped. skipped.
customData: customData:
type: string type: object
format: json format: json
default: null
description: | description: |
Custom user data that gets threaded through the processing. Docspell Custom user data that gets threaded through the processing. Docspell
ignores it completely, but will pass it to the outcome of processing ignores it completely, but will pass it to the outcome of processing

View File

@ -32,7 +32,6 @@ import docspell.store.queries.{
import docspell.store.records._ import docspell.store.records._
import docspell.store.{AddResult, UpdateResult} import docspell.store.{AddResult, UpdateResult}
import io.circe.Json
import org.http4s.headers.`Content-Type` import org.http4s.headers.`Content-Type`
import org.http4s.multipart.Multipart import org.http4s.multipart.Multipart
import org.log4s.Logger import org.log4s.Logger
@ -317,7 +316,7 @@ trait Conversions {
m.language, m.language,
m.attachmentsOnly, m.attachmentsOnly,
m.flattenArchives, m.flattenArchives,
m.customData.map(Json.fromString) // TODO fix openapi spec m.customData
) )
) )
) )

View File

@ -1,6 +1,6 @@
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1") addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0") addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
addSbtPlugin("com.github.eikek" % "sbt-openapi-schema" % "0.10.0") addSbtPlugin("com.github.eikek" % "sbt-openapi-schema" % "0.11.0")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1") addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0") addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1") addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1")