import 'package:luthor/luthor.dart'; void main() { final validator = l.string().uuid(); print(validator.validateValue('f47ac10b-58cc-4372-a567-0e02b2c3d479'));}
import 'package:luthor/luthor.dart';import 'package:freezed_annotation/freezed_annotation.dart'; part 'uuid.freezed.dart';part 'uuid.g.dart'; @freezed@luthorclass UuidSchema extends _$UuidSchema { const factory UuidSchema({ required String value, }) = _$UuidSchema; static SchemaValidationResult<UuidSchema> validate( Map<String, dynamic> json, ) => _$UuidSchemaValidate(json); factory UuidSchema.fromJson(Map<String, dynamic> json) => _$UuidSchemaFromJson(json);} void main() { print(UuidSchema.validate({'value': 'f47ac10b-58cc-4372-a567-0e02b2c3d479'}));}