OpenAPISchema.string constructor
OpenAPISchema.string({})
Creates a string schema.
Implementation
factory OpenAPISchema.string({
String? format,
String? description,
String? pattern,
int? minLength,
int? maxLength,
Map<String, Object?>? additional,
}) => OpenAPISchema._({
...?additional,
'type': 'string',
'format': ?format,
'description': ?description,
'pattern': ?pattern,
'minLength': ?minLength,
'maxLength': ?maxLength,
});