@Override
    public JFieldVar apply(String nodeName, JsonNode node, JsonNode parent, JFieldVar field, Schema currentSchema) {

        if (ruleFactory.getGenerationConfig().isIncludeJsr303Annotations() && isApplicableType(field)) {

            if (node.has("minimum")) {
                final Class<? extends Annotation> decimalMinClass
                        = ruleFactory.getGenerationConfig().isUseJakartaValidation()
                        ? DecimalMin.class
                        : javax.validation.constraints.DecimalMin.class;
                JAnnotationUse annotation = field.annotate(decimalMinClass);
                annotation.param("value", node.get("minimum").asText());
            }

            if (node.has("maximum")) {
                final Class<? extends Annotation> decimalMaxClass
                        = ruleFactory.getGenerationConfig().isUseJakartaValidation()
                        ? DecimalMax.class
                        : javax.validation.constraints.DecimalMax.class;
                JAnnotationUse annotation = field.annotate(decimalMaxClass);
                annotation.param("value", node.get("maximum").asText());
            }

        }

        return field;
    }
@Test
    public void testMinimum() {
        when(config.isIncludeJsr303Annotations()).thenReturn(true);
        final String minValue = Integer.toString(new Random().nextInt());
        when(subNode.asText()).thenReturn(minValue);
        when(node.get("minimum")).thenReturn(subNode);
        when(fieldVar.annotate(decimalMinClass)).thenReturn(annotationMin);
        when(node.has("minimum")).thenReturn(true);
        when(fieldVar.type().boxify().fullName()).thenReturn(fieldClass.getTypeName());

        JFieldVar result = rule.apply("node", node, null, fieldVar, null);
        assertSame(fieldVar, result);

        verify(fieldVar, times(isApplicable ? 1 : 0)).annotate(decimalMinClass);
        verify(annotationMin, times(isApplicable ? 1 : 0)).param("value", minValue);
        verify(fieldVar, never()).annotate(decimalMaxClass);
        verify(annotationMax, never()).param(eq("value"), anyString());
    }