How to use the json-refs.pathFromPointer function in json-refs

To help you get started, we’ve selected a few json-refs 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 apigee-127 / sway / lib / types.js View on Github external
function ParameterValue (parameter, raw) {
  var pPath = JsonRefs.pathFromPointer(parameter.ptr);
  var processed = false;
  var schema = parameter.computedSchema;
  var error;
  var isValid;
  var processedValue;

  this.raw = raw;

  // Use Object.defineProperty for 'value' to allow for lazy processing of the raw value
  Object.defineProperties(this, {
    error: {
      enumerable: true,
      get: function () {
        // Always call this.valid to ensure we validate the value prior to returning any values
        if (this.valid === true) {
          return undefined;

json-refs

Various utilities for JSON References (http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03).

MIT
Latest version published 5 years ago

Package Health Score

71 / 100
Full package analysis