Skip to content

Belle

Compare
Choose a tag to compare
@imrafaelmerino imrafaelmerino released this 25 Aug 16:03
· 68 commits to master since this release
7922a2d

REFACTOR

  • JsObjSpec.strict -> JsObjSpec.of

  • JsObjSpec.setOptionals -> JsObjSpec.withOptKeys

  • JsObjSpec.setAllOptional -> JsObjSpec.withAllOptKeys

  • JsObjGen.setOptionals -> JsObjGen.withOptKeys

  • JsObjGen.setAllOptional -> JsObjGen.withAllOptKeys

  • JsObjGen.setNullables -> JsObjGen.withNullValues

  • JsObjGen.setAllNullable -> JsObjGen.withAllNullValues

CHANGES

  • JsObjSpec.lenient factory methods have been deleted. To create lenient specs, create first strict ones with the static factory method of, and then call the lenient method:

  • JsObSpec strictSpec = JsObjSpec.of(...);

  • JsObjSpec lenientSpec = strictSpec.lenient();

IMPROVEMENTS

  • New validation when creating JsObjSpec. The required and optional fields must exist, otherwise, an IllegalArgumentException is thrown

  • New validation when creating JsObjGen. The nullable and optional fields must exist, otherwise, an IllegalArgumentException is thrown