neutralts::utils

Function is_empty_key

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

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

§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 considered empty, otherwise false.