How to use the jsonref.normalizeUri function in jsonref

To help you get started, we’ve selected a few jsonref 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 vivocha / arrest / lib / api.js View on Github external
_.each(originalSwagger.securityDefinitions, function(i, k) {
        if (i.authorizationUrl) {
          out.securityDefinitions[k].authorizationUrl = jr.normalizeUri(i.authorizationUrl, out.id, true);
        }
        if (i.tokenUrl) {
          out.securityDefinitions[k].tokenUrl = jr.normalizeUri(i.tokenUrl, out.id, true);
        }
      });
      res.json(out);
github vivocha / arrest / lib / api.js View on Github external
_.each(originalSwagger.securityDefinitions, function(i, k) {
        if (i.authorizationUrl) {
          out.securityDefinitions[k].authorizationUrl = jr.normalizeUri(i.authorizationUrl, out.id, true);
        }
        if (i.tokenUrl) {
          out.securityDefinitions[k].tokenUrl = jr.normalizeUri(i.tokenUrl, out.id, true);
        }
      });
      res.json(out);

jsonref

Javascript References ($ref) and Pointers library

MIT
Latest version published 2 years ago

Package Health Score

51 / 100
Full package analysis