@@ -204,9 +204,7 @@ class DataTypeConverter(
204204 properties = properties,
205205 constraints = constraints,
206206 deprecated = schemaInfo.getDeprecated(),
207- documentation = Documentation (
208- description = schemaInfo.description
209- )
207+ documentation = Documentation (description = schemaInfo.description)
210208 )
211209
212210 dataTypes.add (objectType)
@@ -246,22 +244,29 @@ class DataTypeConverter(
246244 return when (typeFormat) {
247245 " integer" ,
248246 " integer:int32" ->
249- IntegerDataType (constraints, schemaInfo.getDeprecated())
247+ IntegerDataType (constraints, schemaInfo.getDeprecated(),
248+ Documentation (description = schemaInfo.description))
250249 " integer:int64" ->
251- LongDataType (constraints, schemaInfo.getDeprecated())
250+ LongDataType (constraints, schemaInfo.getDeprecated(),
251+ Documentation (description = schemaInfo.description))
252252 " number" ,
253253 " number:float" ->
254- FloatDataType (constraints, schemaInfo.getDeprecated())
254+ FloatDataType (constraints, schemaInfo.getDeprecated(),
255+ Documentation (description = schemaInfo.description))
255256 " number:double" ->
256- DoubleDataType (constraints, schemaInfo.getDeprecated())
257+ DoubleDataType (constraints, schemaInfo.getDeprecated(),
258+ Documentation (description = schemaInfo.description))
257259 " boolean" ->
258- BooleanDataType (constraints, schemaInfo.getDeprecated())
260+ BooleanDataType (constraints, schemaInfo.getDeprecated(),
261+ Documentation (description = schemaInfo.description))
259262 " string" ->
260263 createStringDataType(schemaInfo, constraints, dataTypes)
261264 " string:date" ->
262- LocalDateDataType (constraints, schemaInfo.getDeprecated())
265+ LocalDateDataType (constraints, schemaInfo.getDeprecated(),
266+ Documentation (description = schemaInfo.description))
263267 " string:date-time" ->
264- OffsetDateTimeDataType (constraints, schemaInfo.getDeprecated())
268+ OffsetDateTimeDataType (constraints, schemaInfo.getDeprecated(),
269+ Documentation (description = schemaInfo.description))
265270 else ->
266271 throw UnknownDataTypeException (schemaInfo.getName(), schemaInfo.getType(),
267272 schemaInfo.getFormat())
@@ -294,9 +299,12 @@ class DataTypeConverter(
294299 " date-time" )
295300 }
296301
297- private fun createStringDataType (schemaInfo : SchemaInfo , constraints : DataTypeConstraints , dataTypes : DataTypes ): DataType {
302+ private fun createStringDataType (schemaInfo : SchemaInfo , constraints : DataTypeConstraints ,
303+ dataTypes : DataTypes ): DataType {
304+
298305 if (! schemaInfo.isEnum()) {
299- return StringDataType (constraints, schemaInfo.getDeprecated())
306+ return StringDataType (constraints, schemaInfo.getDeprecated(),
307+ Documentation (description = schemaInfo.description))
300308 }
301309
302310 // in case of an inline definition the name may be lowercase, make sure the enum
0 commit comments