This repository was archived by the owner on Mar 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/main/kotlin/io/openapiprocessor/core/converter Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ class DataTypeConverter(
214214
215215 var typeFormat = schemaInfo.getType()
216216 if (schemaInfo.getFormat() != null ) {
217- typeFormat + = " / " + schemaInfo.getFormat()
217+ typeFormat + = " : " + schemaInfo.getFormat()
218218 }
219219
220220 // todo factory method in SchemaInfo
@@ -231,22 +231,22 @@ class DataTypeConverter(
231231
232232 return when (typeFormat) {
233233 " integer" ,
234- " integer/ int32" ->
234+ " integer: int32" ->
235235 IntegerDataType (constraints, schemaInfo.getDeprecated())
236- " integer/ int64" ->
236+ " integer: int64" ->
237237 LongDataType (constraints, schemaInfo.getDeprecated())
238238 " number" ,
239- " number/ float" ->
239+ " number: float" ->
240240 FloatDataType (constraints, schemaInfo.getDeprecated())
241- " number/ double" ->
241+ " number: double" ->
242242 DoubleDataType (constraints, schemaInfo.getDeprecated())
243243 " boolean" ->
244244 BooleanDataType (constraints, schemaInfo.getDeprecated())
245245 " string" ->
246246 createStringDataType(schemaInfo, constraints, dataTypes)
247- " string/ date" ->
247+ " string: date" ->
248248 LocalDateDataType (constraints, schemaInfo.getDeprecated())
249- " string/ date-time" ->
249+ " string: date-time" ->
250250 OffsetDateTimeDataType (constraints, schemaInfo.getDeprecated())
251251 else ->
252252 throw UnknownDataTypeException (schemaInfo.getName(), schemaInfo.getType(),
You can’t perform that action at this time.
0 commit comments