/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.6 * User agent: apibuilder app.apibuilder.io/flow/postman-generator-attributes/0.0.6/scalacheck */ package io.flow.postman.generator.attributes.v0.models.scalacheck import org.scalacheck.{Arbitrary, Gen} object PostmanGeneratorAttributesScalaCheck extends PostmanGeneratorAttributesScalaCheck { implicit def arbitraryJodaDateTime: Arbitrary[_root_.org.joda.time.DateTime] = Arbitrary(genJodaDateTime) def genJodaDateTime: Gen[_root_.org.joda.time.DateTime] = Gen.posNum[Long].map(instant => new _root_.org.joda.time.DateTime(instant)) implicit def arbitraryPlayJsObject: Arbitrary[_root_.play.api.libs.json.JsObject] = Arbitrary(genPlayJsObject) def genPlayJsObject: Gen[_root_.play.api.libs.json.JsObject] = Gen.const(_root_.play.api.libs.json.JsObject.empty) } trait PostmanGeneratorAttributesScalaCheck extends io.apibuilder.spec.v0.models.scalacheck.ApibuilderSpecScalaCheck { implicit def arbitraryJodaDateTime: Arbitrary[_root_.org.joda.time.DateTime] implicit def arbitraryPlayJsObject: Arbitrary[_root_.play.api.libs.json.JsObject] implicit def arbitraryBasicAuth: Arbitrary[io.flow.postman.generator.attributes.v0.models.BasicAuth] = Arbitrary(genBasicAuth) def genBasicAuth: Gen[io.flow.postman.generator.attributes.v0.models.BasicAuth] = for { username <- Arbitrary.arbitrary[String] password <- Arbitrary.arbitrary[String] } yield io.flow.postman.generator.attributes.v0.models.BasicAuth(username, password) implicit def arbitraryObjectReference: Arbitrary[io.flow.postman.generator.attributes.v0.models.ObjectReference] = Arbitrary(genObjectReference) def genObjectReference: Gen[io.flow.postman.generator.attributes.v0.models.ObjectReference] = for { relatedServiceNamespace <- Arbitrary.arbitrary[String] resourceType <- Arbitrary.arbitrary[String] operationMethod <- Arbitrary.arbitrary[io.apibuilder.spec.v0.models.Method] operationPath <- Arbitrary.arbitrary[String] identifierField <- Arbitrary.arbitrary[String] queryParams <- Arbitrary.arbitrary[_root_.scala.Option[Map[String, String]]] deleteOperationPath <- Arbitrary.arbitrary[_root_.scala.Option[String]] } yield io.flow.postman.generator.attributes.v0.models.ObjectReference( relatedServiceNamespace, resourceType, operationMethod, operationPath, identifierField, queryParams, deleteOperationPath ) implicit def arbitraryValueSubstitute: Arbitrary[io.flow.postman.generator.attributes.v0.models.ValueSubstitute] = Arbitrary(genValueSubstitute) def genValueSubstitute: Gen[io.flow.postman.generator.attributes.v0.models.ValueSubstitute] = for { substitute <- Arbitrary.arbitrary[String] } yield io.flow.postman.generator.attributes.v0.models.ValueSubstitute(substitute) implicit def arbitraryAttributeName: Arbitrary[io.flow.postman.generator.attributes.v0.models.AttributeName] = Arbitrary(genAttributeName) def genAttributeName: Gen[io.flow.postman.generator.attributes.v0.models.AttributeName] = Gen.oneOf( io.flow.postman.generator.attributes.v0.models.AttributeName.PostmanBasicAuth, io.flow.postman.generator.attributes.v0.models.AttributeName.ObjectReference, io.flow.postman.generator.attributes.v0.models.AttributeName.ValueSubstitute ) }