@Test void jsonSchemaTest() { final Ui form1 = ui() .withJsonSchema(jsonSchema() .withType("object") .withTitle("Comment") .withProperty("lastname", jsonSchema().withType("string").build()) .withProperty("firstname", jsonSchema().withType("string").build()) .withProperty("age", jsonSchema().withType("number").build()) .build()) .build(); final String json = jsonb.toJson(form1); assertEquals("{\"jsonSchema\":{\"properties\":{\"lastname\":{\"type\":\"string\"}," + "\"firstname\":{\"type\":\"string\"},\"age\":{\"type\":\"number\"}}," + "\"title\":\"Comment\",\"type\":\"object\"}}", json); }
public static Builder ui() { return new Builder(); }
Ui { public static Builder ui() { return new Builder(); } }
Ui { public static Builder ui() { return new Builder(); }  }
Ui { public static Builder ui() { return new Builder(); }  static Builder ui(); }
Ui { public static Builder ui() { return new Builder(); }  static Builder ui();  }