package io.jboot.test.json;

import javax.validation.constraints.NotNull;
import java.math.BigInteger;

public class MyBean {
//    private String id;
    private int age;
    private BigInteger amount;

    @NotNull
    public String getId() {
        return null;
    }


//    public void setId(String id) {
//        this.id = id;
//    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public BigInteger getAmount() {
        return amount;
    }

    public void setAmount(BigInteger amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "MyBean{" +
//                "id='" + id + '\'' +
                ", age=" + age +
                ", amount=" + amount +
                '}';
    }
}

@@ -119,18 +119,16 @@
 yBean %7B%0A
-//
     priv
@@ -255,12 +255,10 @@
 urn 
-null
+id
 ;%0A  
@@ -263,18 +263,16 @@
     %7D%0A%0A%0A
-//
     publ
@@ -298,18 +298,16 @@
 g id) %7B%0A
-//
         
@@ -320,18 +320,16 @@
 d = id;%0A
-//
     %7D%0A%0A 
@@ -671,10 +671,8 @@
 %22 +%0A
-//
     

add JsonBody.validate