Skip to main content

schema_string_array

Macro schema_string_array 

Source
macro_rules! schema_string_array {
    ($description:expr) => { ... };
    ($description:expr, items_pattern: $pattern:expr) => { ... };
}
Expand description

Generate a JSON schema object with string array type.

ยงUsage

schema_string_array!("List of column names")
schema_string_array!("Field names for schema inference", items_pattern: r"^[a-z_]+$")