Class RequiredValidation.Impl
- java.lang.Object
-
- org.apache.johnzon.jsonschema.spi.builtin.BaseValidation
-
- org.apache.johnzon.jsonschema.spi.builtin.RequiredValidation.Impl
-
- All Implemented Interfaces:
Function<jakarta.json.JsonValue,Stream<ValidationResult.ValidationError>>
- Enclosing class:
- RequiredValidation
private static class RequiredValidation.Impl extends BaseValidation
-
-
Field Summary
Fields Modifier and Type Field Description private Collection<String>
required
-
Fields inherited from class org.apache.johnzon.jsonschema.spi.builtin.BaseValidation
extractor, pointer
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Impl(Collection<String> required, Function<jakarta.json.JsonValue,jakarta.json.JsonValue> extractor, String pointer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<ValidationResult.ValidationError>
onObject(jakarta.json.JsonObject obj)
private Stream<ValidationResult.ValidationError>
toErrors(Stream<String> fields)
String
toString()
-
Methods inherited from class org.apache.johnzon.jsonschema.spi.builtin.BaseValidation
apply, isNull, onArray, onBoolean, onNumber, onString
-
-
-
-
Field Detail
-
required
private final Collection<String> required
-
-
Constructor Detail
-
Impl
private Impl(Collection<String> required, Function<jakarta.json.JsonValue,jakarta.json.JsonValue> extractor, String pointer)
-
-
Method Detail
-
onObject
public Stream<ValidationResult.ValidationError> onObject(jakarta.json.JsonObject obj)
- Overrides:
onObject
in classBaseValidation
-
toErrors
private Stream<ValidationResult.ValidationError> toErrors(Stream<String> fields)
-
-