neutralts::utils

Function is_array_key

Source
pub fn is_array_key(schema: &Value, key: &str) -> bool
Expand description

Checks if the value associated with a key in the schema is considered an array.

§Arguments

  • schema: A reference to the JSON schema as a Value.
  • key: The key used to check the value in the schema.

§Returns

  • true if the value is an array, otherwise false.