import 'package:luthor/luthor.dart'; void main() { final validator = l.list(validators: [l.int()]); print(validator.validateValue([42]));}
import 'package:luthor/luthor.dart';import 'package:freezed_annotation/freezed_annotation.dart'; part 'list_schema.freezed.dart';part 'list_schema.g.dart'; @freezed@luthorclass ListSchema extends _$ListSchema { const factory ListSchema({ required List<int> value, }) = _$ListSchema; static SchemaValidationResult<ListSchema> validate( Map<String, dynamic> json, ) => _$ListSchemaValidate(json); factory ListSchema.fromJson(Map<String, dynamic> json) => _$ListSchemaFromJson(json);} void main() { print(ListSchema.validate({'value': [42]}));}