Skip to content

Commit

Permalink
Add helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
mbryzek committed Jul 11, 2024
1 parent d0fd15d commit d993cd9
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,20 @@ trait ApiBuilderServiceBuilders {
def makeModel(
name: String = random(),
plural: String = random(),
description: Option[String] = None,
deprecation: Option[Deprecation] = None,
fields: Seq[Field] = Nil,
attributes: Seq[Attribute] = Nil,
interfaces: Seq[String] = Nil
): Model = {
Model(
name = name,
plural = plural,
fields = fields
description = description,
deprecation = deprecation,
fields = fields,
attributes = attributes,
interfaces = interfaces
)
}

Expand Down

0 comments on commit d993cd9

Please sign in to comment.