package ai.decompile.die.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public record DieResult(@JsonProperty("detects") List<Detect> detects) {

  @JsonIgnoreProperties(ignoreUnknown = true)
  public record Detect(
      @JsonProperty("filetype") String filetype, @JsonProperty("values") List<Value> values) {}

  @JsonIgnoreProperties(ignoreUnknown = true)
  public record Value(
      @JsonProperty("info") String info,
      @JsonProperty("string") String string,
      @JsonProperty("type") String type,
      @JsonProperty("name") String name) {}
}
