Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed the issue OpenAPITools#16834
  • Loading branch information
aniska123 committed Oct 20, 2023
1 parent 77687a8 commit 5a5f174
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions #16834
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.PROPERTY,
property = "type"
)
@JsonSubTypes({
@JsonSubTypes.Type(value = Integer.class, name = "integer"),
@JsonSubTypes.Type(value = String.class, name = "string"),
// Add other primitive types as needed
})
public interface PrimitiveTypeMixin {
// This interface is just a marker, no implementation needed
}

0 comments on commit 5a5f174

Please sign in to comment.