New document site! ==> https://yavi.ik.am
What's Changed
- Raise the Java baseline to 21 by @making in #532
- Count emoji with the \b{g} grapheme cluster boundary by @making in #533
- Replace JSR 305 with JSpecify and enforce nullness with NullAway by @making in #534
- Seal Validated with records and add a structured path to ConstraintViolation by @making in #537
- Add value validator combinators and object, list and map arguments by @making in #538
- Expose the input of a validator as a public description with JSON Schema output by @making in #539
- Validate map input with fromMap, untyped validators and a discriminated union by @making in #540
- Read the tree model of a JSON library with an InputReader by @making in #541
- Read a map of strings such as request parameters with InputReader#coercingStrings() by @making in #542
- Read request parameters as the tree they stand for with readingParameters() by @making in #543
- Locate the violations of lifted collection elements under the index by @making in #544
- Read the same map with _embedded and the remaining keys with _rest by @making in #545
- Add validators of a single value to Yavi and readable messages for a value without a name by @making in #546
- Transform a value before its constraints (trim, lower case, normalize, preprocess) by @making in #547
- Constrain the list or map of _list and _map by @making in #548
- Make a hand-written validation step short to write by @making in #549
- Add recover, which replaces any failure of a validator with a fallback by @making in #550
- Add ready-made forms of the violations for forms and API responses by @making in #551
- Read enum names, booleans and numbers leniently on request, and bound the digits of a BigDecimal by @making in #552
- Add lazy and recursive validators for structures that contain themselves by @making in #553
- Tell an absent key from an explicit null with presence() by @making in #555
- Hand validated values to functions without @nullable parameters by @making in #556
- Require a validated value by default and tell from its type whether it is null by @making in #557
- Return a declared type from a combination of validation results and remove the redundant members by @making in #558
- Test the InputReader against the JSON tree model of the JDK (JEP 540) by @making in #559
- Rename MapInputValidator to ObjectInputValidator and Yavi.arguments() to Yavi.schema() by @making in #560
- Return the validator of the properties from constraintOnTarget of ObjectInputValidator and DiscriminatedUnionValidator by @making in #561
- Tell an absent key from null with required() and rejectingNull() by @making in #562
- Reject the modifier chains of a schema property that have no effect by type by @making in #563
- Honor a validator that accepts null in _object(name, validator) and reject the remaining dead chains by @making in #564
- Reject by type the schemas that fromMap rejected when it was built by @making in #565
- Keep the violations of anyOf per alternative, add multipleOf, ip(), uri() and ulid(), and read UUID and URI from a string by @making in #566
- Say what the parser of a JSON tree must be told to keep numbers as written by @making in #567
- Expose the arguments of a violation by name and keep the violated value out of a detail by @making in #568
- Show how a form validated from request parameters is shown again with a BindingResult in Spring MVC by @making in #569
- Report an empty text of a property as required rather than as null by @making in #570
- Give a property of a schema a label and the messages of a missing value and of another type by @making in #571
- Use a validator under another name, read a list from one text and describe properties known at run time by @making in #572
- Trim the text of a string too, accept an empty string for every format and take a name without constraints by @making in #573
- Return a validator of every map of parameters from readingParameters by @making in #574
- Show a message written in code even when the formatter has a message for its key by @making in #575
- Take a container of a subtype in a lifted validator, a list and a map by @making in #576
- Write the parameters back as a validator reads them, to show a form again by @making in #577
- Write an object back as the map that its validator reads by @making in #578
- Reject a property that cannot be written back by the compiler by @making in #579
- Write some of the properties of an object back with a view by @making in #580
- Withhold a property where it is defined from views, forms shown again and JSON Schema by @making in #581
- Build the validator of a rest-only schema without a function by @making in #582
- Write a list split by a pattern back as text, and accept a label before withheld() and splitBy by @making in #583
- Add unique(key), ResourceBundleMessageFormatter and a readable toString() of a violation by @making in #584
- Add a failure without a locale and report it with the locale of the validation by @making in #585
- Report every violated rule of constraintOnTarget by @making in #586
- Map a property of a schema where it is defined by @making in #587
- Write a property of a view under another key by @making in #588
- Bump tools.jackson.core:jackson-databind from 3.2.3 to 3.3.0 by @dependabot[bot] in #554
- Bump compile-testing to 0.24.0 by @making in #589
- Bump JUnit to 6.1.3 by @making in #590
- Enforce package cycles with ArchUnit and remove the constraint cycle by @making in #591
- Rebuild the documentation site in Markdown with versioned English and Japanese content by @making in #594
- Run Java examples in the browser and highlight documentation code by @making in #595
- Publish the documentation site as a GitHub Pages artifact by @making in #596
- Add runnable examples across the documentation by @making in #597
- Bump org.xerial:sqlite-jdbc from 3.50.3.0 to 3.54.1.0 by @dependabot[bot] in #593
- Bump org.apache.maven:apache-maven from 3.10.0 to 3.10.1 by @dependabot[bot] in #592
- Add a light/dark/system theme switcher to the docs site by @making in #598
- Build and verify one browser runtime per documented version by @making in #599
- Cache per-version documentation browser runtimes by @making in #600
- Add reified Kotlin helpers for enum and object schema arguments by @making in #601
- Add the YAVI agent skill, published with the documentation site by @making in #602
Full Changelog: 0.17.3...0.18.0