ion_extra library
Classes
- ContainsValidationRule
- CreditCardValidationRule
-
CustomValidationRule<
T> - DoesNotContainValidationRule
- EmailValidationRule
- Ipv4ValidationRule
- Ipv6ValidationRule
- IpValidationRule
- Json
- An HTTP response containing JSON data serialized from a ToJson instance.
-
JsonField<
T> -
Represents a field in a JSON object that can be either absent or present
(with a value or explicitly
null). - JsonFieldAbsent
- Represents an absent field in a JSON object.
-
JsonFieldPresent<
T> - Represents a present field in a JSON object.
- JsonList
- An HTTP response containing a JSON array serialized from a list of ToJson instances.
- JsonObject
-
A strongly-typed wrapper around a
Map<String, Object?>for extracting and validating JSON fields. - JsonReader
- Decoding state passed to JsonType.decode.
-
JsonType<
T> - Describes how a field is decoded, validated and described in a schema.
- LengthValidationRule
- MustMatchValidationRule
- NonControlCharacterValidationRule
-
RangeValidationRule<
T extends num> - RawJson
- An HTTP response containing raw JSON data.
- RegexValidationRule
- ToJson
- Interface for objects that can be serialized to JSON.
- UrlValidationRule
- ValidationError
-
ValidationRule<
T> - Interface for validation rules.
Enums
- JsonSource
- Where the values of a JsonObject come from.
Extension Types
- JsonFieldExtractor
- Helper class for extracting fields as JsonField wrappers.
- Schema
- A JSON Schema object defining any kind of property.
Extensions
-
JsonTypeRules
on JsonType<
T> - Adds validation rules to a JsonType.
- RequestJsonExtractor on Request
-
Extension on
Requestfor extracting and parsing JSON payloads into domain models. - RequestQueryExtractor on Request
-
Extension on
Requestfor extracting and parsing URL query parameters into domain models. -
ValidationRulesExtensions
on List<
ValidationRule< T> > - Extension on List of ValidationRule for concise field validation.
Exceptions / Errors
- ValidationErrors
- Top-level container for validation errors.