Skip to content

Commit 5ca8dba

Browse files
authored
schema dsl: make Property a case class... (#292)
... so it can be used nicely in user feedback. Current example _before_ this PR: ``` [error] (schema / Compile / runMain) java.lang.AssertionError: proto ids must be unique across all schema elements, however we found the following duplicates in node properties: [error] 251 -> flatgraph.schema.Property@52d99cc,flatgraph.schema.Property@a415a1d [error] (schema / Compile / runMain) java.lang.AssertionError: proto ids must be unique across all schema elements, however we found the following duplicates in node properties: [error] 251 -> flatgraph.schema.Property@3ab75944,flatgraph.schema.Property@34fe78a8 ```
1 parent b5ec183 commit 5ca8dba

File tree

1 file changed

+1
-1
lines changed
  • domain-classes-generator/src/main/scala/flatgraph/schema

1 file changed

+1
-1
lines changed

domain-classes-generator/src/main/scala/flatgraph/schema/Schema.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ object EdgeType {
250250
}
251251
}
252252

253-
class Property[A](val name: String, val valueType: Property.ValueType[A], val comment: Option[String] = None, val schemaInfo: SchemaInfo)
253+
case class Property[A](name: String, valueType: Property.ValueType[A], comment: Option[String] = None, schemaInfo: SchemaInfo)
254254
extends HasClassName
255255
with HasOptionalProtoId
256256
with HasSchemaInfo {

0 commit comments

Comments
 (0)