Skip to content

Commit a7242fe

Browse files
K5qu4r3dewaostrowska
authored andcommitted
fix: add "LocalTime" class mappings for PARTIAL_TIME
1 parent 1f1a35b commit a7242fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/swagger-core/src/main/java/io/swagger/v3/core/util/PrimitiveType.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ public Schema createProperty31() {
375375
addKeys(names, OBJECT, "object");
376376
NAMES = Collections.unmodifiableMap(names);
377377

378+
// Add "LocalTime" class mappings
379+
enablePartialTime();
380+
378381
if (System.getenv(Schema.EXPLICIT_OBJECT_SCHEMA_PROPERTY) != null) {
379382
explicitObjectType = Boolean.parseBoolean(System.getenv(Schema.EXPLICIT_OBJECT_SCHEMA_PROPERTY));
380383
} else if (System.getProperty(Schema.EXPLICIT_OBJECT_SCHEMA_PROPERTY) != null) {

0 commit comments

Comments
 (0)