1.0.21 • Published 8 months ago

openapi-sync v1.0.21

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

Openapi-sync

Openapi-sync is a developer-friendly tool designed to keep your API up-to-date by leveraging OpenAPI schemas. It automates the generation of endpoint URIs and type definitions, including shared types, directly from your OpenAPI specification. Whether you need real-time synchronization before commits or periodic updates, openapi-sync ensures your API structure is always current and consistent. With an easy-to-use CLI, this tool integrates seamlessly into your development workflow, making API maintenance simpler and more reliable.

Installation

To install openapi-sync, run the following command:

npm install openapi-sync

Configuration

Create an openapi.sync.json file at the root of your project to configure openapi-sync. You can use the provided openapi.sync.sample.json as reference.

Usage

To start using openapi-sync, simply run the following command in your terminal:

npx openapi-sync

You can also add it as a script in your package.json for easy access:

"scripts": {
  "api-sync": "npx openapi-sync",
}

Features

  • Automated Endpoint URI Generation: Effortlessly generate endpoint URIs from your OpenAPI schema.
  • Type Generation: Automatically create all types defined in your API schema, including shared types, for better code consistency.
  • Flexible CLI Commands: Sync your API at any point in the development process on app start, pre-commit, or via manual triggers.
1.0.19

9 months ago

1.0.17

9 months ago

1.0.21

8 months ago

1.0.20

9 months ago

1.0.15

12 months ago

1.0.14

12 months ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago