• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #6477

26 Mar 2026 04:27PM UTC coverage: 34.758% (-0.07%) from 34.832%
#6477

push

github

web-flow
fix: typo in `content_types` tags value (box/box-openapi#591) (#1753)

0 of 7 new or added lines in 2 files covered. (0.0%)

76 existing lines in 9 files now uncovered.

18682 of 53749 relevant lines covered (34.76%)

0.35 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/box/sdkgen/managers/search/SearchForContentQueryParamsContentTypesField.java
1
package com.box.sdkgen.managers.search;
2

3
import com.box.sdkgen.serialization.json.EnumWrapper;
4
import com.box.sdkgen.serialization.json.Valuable;
5
import com.fasterxml.jackson.core.JsonGenerator;
6
import com.fasterxml.jackson.core.JsonParser;
7
import com.fasterxml.jackson.databind.DeserializationContext;
8
import com.fasterxml.jackson.databind.JsonDeserializer;
9
import com.fasterxml.jackson.databind.JsonSerializer;
10
import com.fasterxml.jackson.databind.SerializerProvider;
11
import java.io.IOException;
12
import java.util.Arrays;
13

14
public enum SearchForContentQueryParamsContentTypesField implements Valuable {
×
15
  NAME("name"),
×
16
  DESCRIPTION("description"),
×
17
  FILE_CONTENT("file_content"),
×
18
  COMMENTS("comments"),
×
NEW
19
  TAGS("tags");
×
20

21
  private final String value;
22

23
  SearchForContentQueryParamsContentTypesField(String value) {
×
24
    this.value = value;
×
25
  }
×
26

27
  public String getValue() {
28
    return value;
×
29
  }
30

31
  public static class SearchForContentQueryParamsContentTypesFieldDeserializer
32
      extends JsonDeserializer<EnumWrapper<SearchForContentQueryParamsContentTypesField>> {
33

34
    public SearchForContentQueryParamsContentTypesFieldDeserializer() {
35
      super();
×
36
    }
×
37

38
    @Override
39
    public EnumWrapper<SearchForContentQueryParamsContentTypesField> deserialize(
40
        JsonParser p, DeserializationContext ctxt) throws IOException {
41
      String value = p.getValueAsString();
×
42
      return Arrays.stream(SearchForContentQueryParamsContentTypesField.values())
×
43
          .filter((v) -> v.getValue().equalsIgnoreCase(value))
×
44
          .findFirst()
×
45
          .map(EnumWrapper::new)
×
46
          .orElse(new EnumWrapper<SearchForContentQueryParamsContentTypesField>(value));
×
47
    }
48
  }
49

50
  public static class SearchForContentQueryParamsContentTypesFieldSerializer
51
      extends JsonSerializer<EnumWrapper<SearchForContentQueryParamsContentTypesField>> {
52

53
    public SearchForContentQueryParamsContentTypesFieldSerializer() {
54
      super();
×
55
    }
×
56

57
    @Override
58
    public void serialize(
59
        EnumWrapper<SearchForContentQueryParamsContentTypesField> value,
60
        JsonGenerator gen,
61
        SerializerProvider serializers)
62
        throws IOException {
63
      gen.writeString(value.getStringValue());
×
64
    }
×
65
  }
66
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc