# @github/openapi

> OpenAPI schema for GitHub's REST API

Latest version **5.7.2** (published 2020-10-16) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @github/openapi
pnpm add @github/openapi
yarn add @github/openapi
bun add @github/openapi
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 5.7.2 |
| Published | 2020-10-16 |
| First published | 2020-01-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12 |
| Dependencies | 8 |
| Unpacked size | 57.4 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Roman Hotsiy |
| Maintainers | colebemis, anuraag016, zeke, lgarron, emilybrick, emplums, dgraham, jonrohan, broccolini, mislav, mdo, muan, primer-css, keithamus, mschoening, koddsson |
| Keywords | openapi, github |

## Links

- npm: https://www.npmjs.com/package/@github/openapi
- Repository: https://github.com/github/openapi
- Homepage: https://github.com/github/openapi#readme
- Issues: https://github.com/github/openapi/issues
- npm.io page: https://npm.io/package/@github/openapi

## Dependencies (8)

- [ajv](https://npm.io/package/ajv.md) ^6.10.2
- [got](https://npm.io/package/got.md) ^10.2.2
- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [is-url](https://npm.io/package/is-url.md) ^1.2.4
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.13.1
- [json-merge-patch](https://npm.io/package/json-merge-patch.md) ^0.2.3
- [@redocly/openapi-cli](https://npm.io/package/@redocly/openapi-cli.md) ^1.0.0-beta.3

## Recent versions

- 5.7.2 (latest) — 2020-10-16
- 5.7.1 — 2020-09-10
- 5.7.0 — 2020-09-09
- 5.6.3 — 2020-09-09
- 5.6.2 — 2020-09-09
- 5.6.1 — 2020-09-03
- 5.6.0 — 2020-08-20
- 5.5.0 — 2020-08-07
- 5.4.2 — 2020-08-06
- 5.4.1 — 2020-08-05
- 5.4.0 — 2020-08-05
- 5.3.0 — 2020-07-31
- 5.2.0 — 2020-07-29
- 5.1.0 — 2020-07-24
- 5.0.3 — 2020-07-23
- … 73 more at https://npm.io/package/@github/openapi/versions

## README

# This project is no longer maintained!

The official OpenAPI descriptions for GitHub's REST API are now available at [github.com/github/rest-api-description](https://github.com/github/rest-api-description). Have a nice day!

---

---

---

---

---

---

---

# @github/openapi

This project houses the official OpenAPI definitions for [GitHub's REST API](https://developer.github.com/v3), including the `api.github.com` API and all currently supported GitHub Enterprise versions of the REST API.

👋 Here to use the OpenAPI schema? See [Downloads](#downloads)

👋 Here to contribute? See [CONTRIBUTING.md](CONTRIBUTING.md)

## Contents

- [What is OpenAPI?](#what-is-openapi)
- [Who's using this?](#whos-using-this)
- [Projects status](#project-status)
- [Downloads](#downloads)
- [Usage](#usage)
- [Contributors ✨](#contributors-%E2%9C%A8)
  
## What is OpenAPI?

[OpenAPI](https://swagger.io/specification/) (formerly Swagger) is an extension of [JSON Schema](https://json-schema.org/) that defines a standard, language-agnostic interface to RESTful APIs which allows both humans and computers to discover and understand the capabilities of an HTTP web service.

OpenAPI schemas are contracts that are useful both for API authors and API consumers. They can be used to produce API documentation, generate API clients (SDKs), run automated tests, validate API payloads, etc.

## Who's using this?

These definitions are used to generate GitHub's REST API reference documentation at [docs.github.com/rest/reference](https://docs.github.com/rest/reference).

These definitions will also soon be used to generate the [JavaScript](https://github.com/octokit/plugin-rest-endpoint-methods.js) and [Ruby](https://github.com/octokit/octokit.rb) Octokit client libraries. (This is a 
work in progress.)

## Project status

This project is under active development and is rapidly evolving. To borrow from [Slack's OpenAPI README](https://github.com/slackapi/slack-api-specs):

> We use a combination of internal metadata, custom scripting, and old fashioned writing-by-hand to produce these specifications. They don't always tell the whole truth and are subject to author and operator error. They are really useful though.

We use semantic versioning and [conventional commit messages](https://www.conventionalcommits.org/en/v1.0.0/) to ensure we're tracking breaking changes and releasing new major versions as necessary, but we cannot always be sure how changes might affect downstream consumers. If you are using these definitions, please be aware that they will change over time. 

## Downloads

✋ Before using these OpenAPI definitions, please read the [project status](#project-status).

You can download the latest [`api.github.com-deref.json`](https://unpkg.com/browse/@github/openapi@latest/dist/api.github.com-deref.json) from unpkg.com or [view all versions](https://unpkg.com/@github/openapi/dist/) of the schema.

If you're using Node.js, you can download and install the [`@github/openapi`](https://npm.im/@github/openapi) package using npm:

```sh
npm install @github/openapi
```

## Usage

After installing the npm package, the raw schema files can be required directly:

```js
const schema = require('@github/openapi/dist/api.github.com.json')
```

The package also exports a single object called `schemas` that includes referenced and dereferenced variants of the schema for api.github.com and GitHub Enterprise:

```js
const { schemas } = require('@github/openapi')

// {
//   'api.github.com-deref': {...},
//   'api.github.com': {...},
//   'ghe-2.18-deref': {...},
//   'ghe-2.18': {...},
//   'ghe-2.19-deref': {...},
//   'ghe-2.19': {...},
//   'ghe-2.20-deref': {...},
//   'ghe-2.20': {...},,
//   'ghe-2.21-deref': {...},
//   'ghe-2.21': {...}
// }
```

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
  <tr>
    <td align="center"><a href="https://redoc.ly"><img src="https://avatars0.githubusercontent.com/u/3975738?v=4" width="100px;" alt=""/><br /><sub><b>Roman Hotsiy</b></sub></a><br /><a href="https://github.com/github/openapi/commits?author=RomanHotsiy" title="Code">💻</a> <a href="https://github.com/github/openapi/commits?author=RomanHotsiy" title="Documentation">📖</a> <a href="#ideas-RomanHotsiy" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/github/openapi/pulls?q=is%3Apr+reviewed-by%3ARomanHotsiy" title="Reviewed Pull Requests">👀</a> <a href="#example-RomanHotsiy" title="Examples">💡</a></td>
    <td align="center"><a href="https://twitter.com/gr2m"><img src="https://avatars3.githubusercontent.com/u/39992?v=4" width="100px;" alt=""/><br /><sub><b>Gregor Martynus</b></sub></a><br /><a href="https://github.com/github/openapi/commits?author=gr2m" title="Code">💻</a> <a href="#content-gr2m" title="Content">🖋</a> <a href="https://github.com/github/openapi/commits?author=gr2m" title="Documentation">📖</a> <a href="#ideas-gr2m" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/github/openapi/pulls?q=is%3Apr+reviewed-by%3Agr2m" title="Reviewed Pull Requests">👀</a></td>
    <td align="center"><a href="http://zeke.sikelianos.com"><img src="https://avatars1.githubusercontent.com/u/2289?v=4" width="100px;" alt=""/><br /><sub><b>Zeke Sikelianos</b></sub></a><br /><a href="#ideas-zeke" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/github/openapi/pulls?q=is%3Apr+reviewed-by%3Azeke" title="Reviewed Pull Requests">👀</a></td>
    <td align="center"><a href="https://github.com/sarahs"><img src="https://avatars3.githubusercontent.com/u/821071?v=4" width="100px;" alt=""/><br /><sub><b>Sarah Schneider</b></sub></a><br /><a href="https://github.com/github/openapi/pulls?q=is%3Apr+reviewed-by%3Asarahs" title="Reviewed Pull Requests">👀</a></td>
    <td align="center"><a href="https://productionreadygraphql.com"><img src="https://avatars3.githubusercontent.com/u/1919498?v=4" width="100px;" alt=""/><br /><sub><b>Marc-Andre Giroux</b></sub></a><br /><a href="#ideas-xuorig" title="Ideas, Planning, & Feedback">🤔</a></td>
    <td align="center"><a href="https://www.keithcirkel.co.uk"><img src="https://avatars3.githubusercontent.com/u/118266?v=4" width="100px;" alt=""/><br /><sub><b>Keith Cirkel</b></sub></a><br /><a href="#infra-keithamus" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
    <td align="center"><a href="https://github.com/rachmari"><img src="https://avatars2.githubusercontent.com/u/9831992?v=4" width="100px;" alt=""/><br /><sub><b>Rachael Sewell</b></sub></a><br /><a href="https://github.com/github/openapi/commits?author=rachmari" title="Documentation">📖</a> <a href="https://github.com/github/openapi/pulls?q=is%3Apr+reviewed-by%3Arachmari" title="Reviewed Pull Requests">👀</a></td>
  </tr>
  <tr>
    <td align="center"><a href="https://chiedojohn.com"><img src="https://avatars2.githubusercontent.com/u/2156688?v=4" width="100px;" alt=""/><br /><sub><b>Chiedo John</b></sub></a><br /><a href="https://github.com/github/openapi/commits?author=chiedo" title="Documentation">📖</a></td>
    <td align="center"><a href="https://github.com/adamaltman"><img src="https://avatars2.githubusercontent.com/u/1161871?v=4" width="100px;" alt=""/><br /><sub><b>Adam Altman</b></sub></a><br /><a href="https://github.com/github/openapi/commits?author=adamaltman" title="Documentation">📖</a> <a href="https://github.com/github/openapi/pulls?q=is%3Apr+reviewed-by%3Aadamaltman" title="Reviewed Pull Requests">👀</a></td>
    <td align="center"><a href="http://cleartext.dev"><img src="https://avatars3.githubusercontent.com/u/54248166?v=4" width="100px;" alt=""/><br /><sub><b>Martin Lopes</b></sub></a><br /><a href="https://github.com/github/openapi/commits?author=martin389" title="Documentation">📖</a></td>
    <td align="center"><a href="https://lucascosti.com"><img src="https://avatars3.githubusercontent.com/u/4434330?v=4" width="100px;" alt=""/><br /><sub><b>Lucas Costi</b></sub></a><br /><a href="https://github.com/github/openapi/commits?author=lucascosti" title="Documentation">📖</a></td>
    <td align="center"><a href="https://github.com/jmarlena"><img src="https://avatars3.githubusercontent.com/u/6732600?v=4" width="100px;" alt=""/><br /><sub><b>jmarlena</b></sub></a><br /><a href="https://github.com/github/openapi/commits?author=jmarlena" title="Documentation">📖</a></td>
  </tr>
</table>

<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

---
_Source: https://npm.io/package/@github/openapi · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
