Skip to main content

normalize

Function normalize 

Source
pub fn normalize(value: &Value, volatile_fields: &[&str]) -> Value
Expand description

Normalize a JSON value for consistent Git diffs

This performs:

  1. Strips volatile fields (@odata.etag, @odata.context, credentials, etc.)
  2. Preserves the property order from the Azure API response
  3. Preserves array element order as returned by the API