@Override public void runObjectValidations() { Example example = (Example) value.getOverlay(); validateStringField(F_summary, false); validateStringField(F_description, false); Overlay<Object> valueField = validateField(F_value, false, Object.class, null); Overlay<String> externalField = validateUrlField(F_externalValue, false, true, false); validateExtensions(example.getExtensions()); checkExactlyOneValue(valueField, externalField); // TODO check that a direct value is compatible with the containng parameter or // media type (not entirely clear how to approach this) }
@Override public void runObjectValidations() { Example example = (Example) value.getOverlay(); validateStringField(F_summary, false); validateStringField(F_description, false); Overlay<Object> valueField = validateField(F_value, false, Object.class, null); Overlay<String> externalField = validateUrlField(F_externalValue, false, true, false); validateExtensions(example.getExtensions()); checkExactlyOneValue(valueField, externalField); // TODO check that a direct value is compatible with the containng parameter or // media type (not entirely clear how to approach this) }