/** * Generated by API Builder - https://www.apibuilder.io * Service version: 1.1.0 * User agent: apibuilder app.apibuilder.io/hbc/api-product-recommendations-lat/1.1.0/flow_erm_schema */ package com.hbc.api.product.recommendations.lat.v1.erm import io.flow.event.relation.mapper.schema.ErmSpec import io.apibuilder.spec.v0.models.{Enum, EnumValue, Field, Model, Union, UnionType} import com.hbc.api.product.recommendations.lat.v1.models.Price import com.hbc.api.product.recommendations.lat.v1.models.Recommendation import com.hbc.api.product.recommendations.lat.v1.models.SimilarProductRecommendation object GeneratedErmSchema { implicit lazy val ermSpecPrice: ErmSpec[Price] = ErmSpec.model( qualifiedName = "com.hbc.api.product.recommendations.lat.v1.models.price", spec = Model(name = "price", plural = "prices", fields = Seq( Field(name = "was", `type` = "string", required = true), Field(name = "now", `type` = "string", required = true), Field(name = "onSale", `type` = "boolean", required = true), )), ) implicit lazy val ermSpecRecommendation: ErmSpec[Recommendation] = ErmSpec.model( qualifiedName = "com.hbc.api.product.recommendations.lat.v1.models.recommendation", spec = Model(name = "recommendation", plural = "recommendations", fields = Seq( Field(name = "productId", `type` = "string", required = true), Field(name = "productName", `type` = "string", required = true), Field(name = "productUrl", `type` = "string", required = true), Field(name = "productImageUrl", `type` = "string", required = true), Field(name = "brandName", `type` = "string", required = true), Field(name = "price", `type` = "price", required = true), Field(name = "rating", `type` = "double", required = false), Field(name = "numReviews", `type` = "long", required = false), )), resolved = Map[String, ErmSpec[_]]( "com.hbc.api.product.recommendations.lat.v1.models.price" -> ermSpecPrice, ), ) implicit lazy val ermSpecSimilarProductRecommendation: ErmSpec[SimilarProductRecommendation] = ErmSpec.model( qualifiedName = "com.hbc.api.product.recommendations.lat.v1.models.similarProductRecommendation", spec = Model(name = "similarProductRecommendation", plural = "similarProductRecommendations", fields = Seq( Field(name = "recommendations", `type` = "[recommendation]", required = true), )), resolved = Map[String, ErmSpec[_]]( "com.hbc.api.product.recommendations.lat.v1.models.recommendation" -> ermSpecRecommendation, ), ) val all: Seq[ErmSpec[_]] = Seq( ermSpecPrice, ermSpecRecommendation, ermSpecSimilarProductRecommendation, ) }