Schema.string constructor
const
Schema.string({
- Xml? xml,
- String? title,
- String? description,
- @JsonKey(name: 'default') String? defaultValue,
- bool? nullable,
- @JsonKey(unknownEnumValue: JsonKey.nullForUndefinedEnumValue) StringFormat? format,
- String? pattern,
- String? example,
- @JsonKey(fromJson: _fromJsonInt) int? minLength,
- @JsonKey(fromJson: _fromJsonInt) int? maxLength,
- bool? exclusiveMinimum,
- bool? exclusiveMaximum,
- @JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
Implementation
const factory Schema.string({
Xml? xml,
String? title,
String? description,
@JsonKey(name: 'default') String? defaultValue,
bool? nullable,
@JsonKey(unknownEnumValue: JsonKey.nullForUndefinedEnumValue)
StringFormat? format,
String? pattern,
String? example,
@JsonKey(fromJson: _fromJsonInt) int? minLength,
@JsonKey(fromJson: _fromJsonInt) int? maxLength,
bool? exclusiveMinimum,
bool? exclusiveMaximum,
@JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
}) = SchemaString;