Schema.string constructor
Schema.string({})
Creates a Schema for a string.
Implementation
factory Schema.string({
String? format,
String? title,
String? description,
List<dynamic>? examples,
bool? readOnly,
bool? writeOnly,
String? $default,
int? maxLength,
int? minLength,
String? pattern,
}) => Schema(
type: 'string',
format: format,
title: title,
description: description,
examples: examples,
readOnly: readOnly,
writeOnly: writeOnly,
$default: $default,
minLength: minLength,
maxLength: maxLength,
pattern: pattern,
);