Skip to content

Commit

Permalink
fix schema path strings
Browse files Browse the repository at this point in the history
  • Loading branch information
tylersouthwick committed Apr 12, 2018
1 parent 36aecdf commit 8c67517
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ case class ModelPath(model : Model) extends SchemaPath {
case arrayModel : ArrayModel => "array"
case refModel : RefModel => refModel.getSimpleRef
case composed : ComposedModel => "Composed"
case _ => model.getClass.getName + " - " + model.getReference + " - " + model.getTitle
case _ => model.getTitle
})
}
case class PropertyPath(property: Property) extends SchemaPath {
override def asString: Seq[String] = Seq(property match {
case refProperty : RefProperty => refProperty.getSimpleRef
case arrayProperty : ArrayProperty => "array"
case _ => property.getType + " - " + property.getName
case _ => property.getTitle
})
}
case class ComposedPath(left: SchemaPath, right: SchemaPath) extends SchemaPath {
Expand Down

0 comments on commit 8c67517

Please sign in to comment.