Skip to content

Commit

Permalink
- Remove _t property from Record DTO. Always use SimpleRecordDTO
Browse files Browse the repository at this point in the history
- Remove deprecated and unused DTO types Text and FullRecord
  • Loading branch information
clezag committed Jan 22, 2024
1 parent 955dff4 commit ba13726
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 97 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeInfo.Id;

/**
* describes the validity of a record and makes it serializable
*
* @author Patrick Bertolla
*/
@JsonTypeInfo(use=JsonTypeInfo.Id.CLASS, include=JsonTypeInfo.As.PROPERTY, property="_t")
@JsonTypeInfo(use = Id.DEDUCTION)
@JsonSubTypes({@JsonSubTypes.Type(SimpleRecordDto.class)})
// _t used to be the type information as a class name.
// now we just ignore it
@JsonIgnoreProperties(value = {"_t"})
public interface RecordDto extends Serializable{
public abstract boolean validate();
}

This file was deleted.

0 comments on commit ba13726

Please sign in to comment.