ListSchema extension type

A JSON Schema definition for a List.

on
Implemented types
Available extensions

Constructors

ListSchema({String? title, String? description, Schema? items, List<Schema>? prefixItems, bool? unevaluatedItems, int? minItems, int? maxItems, bool? uniqueItems})
factory
ListSchema.fromMap(Map<String, Object?> _value)

Properties

allOf → List<Schema>?
Schema combinator that requires all sub-schemas to match.
no setterinherited
anyOf → List<Schema>?
Schema combinator that requires at least one of the sub-schemas to match.
no setterinherited
description → String?
A description of this schema.
no setterinherited
items → Schema?
The schema for all the items in this list, or all those after prefixItems (if present).
no setter
maxItems → int?
The maximum number of items in this list.
no setter
minItems → int?
The minimum number of items in this list.
no setter
not → List<Schema>?
Schema combinator that requires none of the sub-schemas to match.
no setterinherited
oneOf → List<Schema>?
Schema combinator that requires exactly one of the sub-schemas to match.
no setterinherited
prefixItems → List<Schema>?
The schema for the initial items in this list, if specified.
no setter
title → String?
A title for this schema, should be short.
no setterinherited
type → JsonType?
The JsonType of this schema, if present.
no setterinherited
unevaluatedItems → bool?
Whether or not additional items in the list are allowed that don't match the items or prefixItems schemas.
no setter
uniqueItems → bool?
Whether or not all the items in this list must be unique.
no setter

Methods

validate(Object? data) → List<ValidationError>

Available on Schema, provided by the SchemaValidation extension

Validates the given data against this schema.