How to use the jmespath.strictDeepEqual function in jmespath

To help you get started, we’ve selected a few jmespath examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github awslabs / aws-api-gateway-developer-portal / lambdas / backend / meteringservice-preview-sdk-js-06-23-2016 / lib / resource_waiter.js View on Github external
pathAny: function(resp, expected, argument) {
      var results = jmespath.search(resp.data, argument);
      if (!Array.isArray(results)) results = [results];
      var numResults = results.length;
      for (var ind = 0 ; ind < numResults; ind++) {
        if (jmespath.strictDeepEqual(results[ind], expected)) {
          return true;
        }
      }
      return false;
    },
github awslabs / aws-api-gateway-developer-portal / lambdas / backend / meteringservice-preview-sdk-js-06-23-2016 / lib / resource_waiter.js View on Github external
path: function(resp, expected, argument) {
      var result = jmespath.search(resp.data, argument);
      return jmespath.strictDeepEqual(result,expected);
    },
github aws / aws-sdk-js / lib / resource_waiter.js View on Github external
pathAny: function(resp, expected, argument) {
      try {
        var results = jmespath.search(resp.data, argument);
      } catch (err) {
        return false;
      }

      if (!Array.isArray(results)) results = [results];
      var numResults = results.length;
      for (var ind = 0 ; ind < numResults; ind++) {
        if (jmespath.strictDeepEqual(results[ind], expected)) {
          return true;
        }
      }
      return false;
    },
github awslabs / aws-api-gateway-developer-portal / lambdas / backend / meteringservice-preview-sdk-js-06-23-2016 / lib / resource_waiter.js View on Github external
pathAll: function(resp, expected, argument) {
      var results = jmespath.search(resp.data, argument);
      if (!Array.isArray(results)) results = [results];
      var numResults = results.length;
      if (!numResults) return false;
      for (var ind = 0 ; ind < numResults; ind++) {
        if (!jmespath.strictDeepEqual(results[ind], expected)) {
          return false;
        }
      }
      return true;
    },
github aws / aws-sdk-js / lib / resource_waiter.js View on Github external
pathAll: function(resp, expected, argument) {
      try {
        var results = jmespath.search(resp.data, argument);
      } catch (err) {
        return false;
      }

      if (!Array.isArray(results)) results = [results];
      var numResults = results.length;
      if (!numResults) return false;
      for (var ind = 0 ; ind < numResults; ind++) {
        if (!jmespath.strictDeepEqual(results[ind], expected)) {
          return false;
        }
      }
      return true;
    },
github aws / aws-sdk-js / lib / resource_waiter.js View on Github external
path: function(resp, expected, argument) {
      try {
        var result = jmespath.search(resp.data, argument);
      } catch (err) {
        return false;
      }

      return jmespath.strictDeepEqual(result,expected);
    },

jmespath

JMESPath implementation in javascript

Apache-2.0
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis

Popular jmespath functions