battleRequirementsRules.put(QUERY_FIELD, queryRuleObject);
return JsonRuleFactory.makeObjectRule(battleRequirementsRules);
}
private JsonRule getQueryRuleObject(JsonRule caseOfDeathRuleObject) {
Map<String, JsonRule> queryRules = new HashMap<>();
<BUG>queryRules.put(ID_FIELD, JsonRuleFactory.makeOptionalRule(JsonRuleFactory.makeStringRule()));

queryRules.put(TYPE_FIELD, JsonRuleFactory.makeOptionalRule(JsonRuleFactory.makeStringRule()));
queryRules.put(PART_OF_DAY_FIELD, JsonRuleFactory.makeOptionalRule(JsonRuleFactory.makeUppercaseStringRule()));
queryRules.put(CAUSE_OF_DEATH_FIELD, JsonRuleFactory.makeOptionalRule(caseOfDeathRuleObject));</BUG>
return JsonRuleFactory.makeObjectRule(queryRules);

battleRequirementsRules.put(QUERY_FIELD, queryRuleObject);
return JsonRuleFactory.makeObjectRule(battleRequirementsRules);
}
private JsonRule getQueryRuleObject(JsonRule caseOfDeathRuleObject) {
Map<String, JsonRule> queryRules = new HashMap<>();
final JsonRule optionalStringRule = JsonRuleFactory.makeOptionalRule(JsonRuleFactory.makeStringRule());
queryRules.put(ID_FIELD, optionalStringRule);
queryRules.put(TYPE_FIELD, optionalStringRule);
final JsonRule uppercaseRule = JsonRuleFactory.makeUppercaseStringRule();
final JsonRule optionalUppercaseRule = JsonRuleFactory.makeOptionalRule(uppercaseRule);
queryRules.put(PART_OF_DAY_FIELD, optionalUppercaseRule);
queryRules.put(CAUSE_OF_DEATH_FIELD, JsonRuleFactory.makeOptionalRule(caseOfDeathRuleObject));
