/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1 * User agent: apibuilder app.apibuilder.io/cerium/termsteelversionapi/0.0.1/play_2_6 */ package cerium.termsteelversionapi.v0.models package object bodyparsers { private def bodyParser[A](parser: _root_.play.api.mvc.BodyParser[_root_.play.api.libs.json.JsValue])( implicit ec: _root_.scala.concurrent.ExecutionContext, rds: _root_.play.api.libs.json.Reads[A] ): _root_.play.api.mvc.BodyParser[A] = parser.validate( _.validate[A].asEither.left.map(e => _root_.play.api.mvc.Results.BadRequest(_root_.play.api.libs.json.JsError.toJson(e)) ) ) def bodyParserFileFlag(parser: _root_.play.api.mvc.BodyParser[_root_.play.api.libs.json.JsValue])( implicit ec: _root_.scala.concurrent.ExecutionContext, rds: _root_.play.api.libs.json.Reads[cerium.termsteelversionapi.v0.models.FileFlag] ): _root_.play.api.mvc.BodyParser[cerium.termsteelversionapi.v0.models.FileFlag] = bodyParser[cerium.termsteelversionapi.v0.models.FileFlag](parser) def bodyParserAttribute(parser: _root_.play.api.mvc.BodyParser[_root_.play.api.libs.json.JsValue])( implicit ec: _root_.scala.concurrent.ExecutionContext, rds: _root_.play.api.libs.json.Reads[cerium.termsteelversionapi.v0.models.Attribute] ): _root_.play.api.mvc.BodyParser[cerium.termsteelversionapi.v0.models.Attribute] = bodyParser[cerium.termsteelversionapi.v0.models.Attribute](parser) def bodyParserError(parser: _root_.play.api.mvc.BodyParser[_root_.play.api.libs.json.JsValue])( implicit ec: _root_.scala.concurrent.ExecutionContext, rds: _root_.play.api.libs.json.Reads[cerium.termsteelversionapi.v0.models.Error] ): _root_.play.api.mvc.BodyParser[cerium.termsteelversionapi.v0.models.Error] = bodyParser[cerium.termsteelversionapi.v0.models.Error](parser) def bodyParserFile(parser: _root_.play.api.mvc.BodyParser[_root_.play.api.libs.json.JsValue])( implicit ec: _root_.scala.concurrent.ExecutionContext, rds: _root_.play.api.libs.json.Reads[cerium.termsteelversionapi.v0.models.File] ): _root_.play.api.mvc.BodyParser[cerium.termsteelversionapi.v0.models.File] = bodyParser[cerium.termsteelversionapi.v0.models.File](parser) def bodyParserGenerator(parser: _root_.play.api.mvc.BodyParser[_root_.play.api.libs.json.JsValue])( implicit ec: _root_.scala.concurrent.ExecutionContext, rds: _root_.play.api.libs.json.Reads[cerium.termsteelversionapi.v0.models.Generator] ): _root_.play.api.mvc.BodyParser[cerium.termsteelversionapi.v0.models.Generator] = bodyParser[cerium.termsteelversionapi.v0.models.Generator](parser) def bodyParserHealthcheck(parser: _root_.play.api.mvc.BodyParser[_root_.play.api.libs.json.JsValue])( implicit ec: _root_.scala.concurrent.ExecutionContext, rds: _root_.play.api.libs.json.Reads[cerium.termsteelversionapi.v0.models.Healthcheck] ): _root_.play.api.mvc.BodyParser[cerium.termsteelversionapi.v0.models.Healthcheck] = bodyParser[cerium.termsteelversionapi.v0.models.Healthcheck](parser) def bodyParserInvocation(parser: _root_.play.api.mvc.BodyParser[_root_.play.api.libs.json.JsValue])( implicit ec: _root_.scala.concurrent.ExecutionContext, rds: _root_.play.api.libs.json.Reads[cerium.termsteelversionapi.v0.models.Invocation] ): _root_.play.api.mvc.BodyParser[cerium.termsteelversionapi.v0.models.Invocation] = bodyParser[cerium.termsteelversionapi.v0.models.Invocation](parser) def bodyParserInvocationForm(parser: _root_.play.api.mvc.BodyParser[_root_.play.api.libs.json.JsValue])( implicit ec: _root_.scala.concurrent.ExecutionContext, rds: _root_.play.api.libs.json.Reads[cerium.termsteelversionapi.v0.models.InvocationForm] ): _root_.play.api.mvc.BodyParser[cerium.termsteelversionapi.v0.models.InvocationForm] = bodyParser[cerium.termsteelversionapi.v0.models.InvocationForm](parser) }