New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

openapi-route-expander

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-route-expander

A utility for resolving $ref in OpenAPI YAML routes, generating new YAML files without $ref, ready for OpenAPI processing.

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
31
decreased by-81.21%
Maintainers
0
Weekly downloads
 
Created
Source

OpenAPI Ref Resolver

Build Status License codecov

A TypeScript utility for resolving $ref in OpenAPI YAML routes, generating new YAML files without $ref, ready for OpenAPI processing.

Table of Contents

Features

  • $ref Resolution: Automatically resolves $ref within OpenAPI YAML routes.
  • YAML Processing: Reads and writes YAML files seamlessly.
  • TypeScript Support: Fully typed and written in TypeScript.
  • Easy Integration: Simple API for integrating into existing projects.

Installation

You can install the package using npm:

npm install openapi-ref-resolver

Or with yarn:

yarn add openapi-ref-resolver

Usage

Here’s an example of how to use the resolveRefsInRoutes function:

import { resolveRefsInRoutes } from 'openapi-ref-resolver';

const inputFilePath = '/absolute/path/to/your/input.yaml';
const outputFilePath = '/absolute/path/to/your/output.yaml';

resolveRefsInRoutes(inputFilePath, outputFilePath);

Keywords

FAQs

Package last updated on 04 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc