@@ -33,6 +33,7 @@ public class Ir
3333 private final String namespaceName ;
3434 private final int id ;
3535 private final int version ;
36+ private final String description ;
3637 private final String semanticVersion ;
3738 private final ByteOrder byteOrder ;
3839
@@ -48,7 +49,8 @@ public class Ir
4849 * @param packageName that should be applied to generated code.
4950 * @param namespaceName that should be applied to generated code.
5051 * @param id identifier for the schema.
51- * @param version of the schema
52+ * @param version of the schema.
53+ * @param description of the schema.
5254 * @param semanticVersion semantic version for mapping to the application domain.
5355 * @param byteOrder byte order for all types in the schema.
5456 * @param headerTokens representing the message headerStructure.
@@ -58,6 +60,7 @@ public Ir(
5860 final String namespaceName ,
5961 final int id ,
6062 final int version ,
63+ final String description ,
6164 final String semanticVersion ,
6265 final ByteOrder byteOrder ,
6366 final List <Token > headerTokens )
@@ -69,6 +72,7 @@ public Ir(
6972 this .namespaceName = namespaceName ;
7073 this .id = id ;
7174 this .version = version ;
75+ this .description = description ;
7276 this .semanticVersion = semanticVersion ;
7377 this .byteOrder = byteOrder ;
7478 this .headerStructure = new HeaderStructure (new ArrayList <>(headerTokens ));
@@ -203,6 +207,16 @@ public int version()
203207 return version ;
204208 }
205209
210+ /**
211+ * Get the description for the schema.
212+ *
213+ * @return the description for the schema.
214+ */
215+ public String description ()
216+ {
217+ return description ;
218+ }
219+
206220 /**
207221 * Get the semantic version of the schema.
208222 *
0 commit comments