GithubHelp home page GithubHelp logo

Comments (3)

sean-krail avatar sean-krail commented on June 14, 2024 1

Created a GHE support ticket for this and here's a curl + jq request you can make to show you the response's keys/structure:

curl --silent --header 'Accept: application/vnd.github.antiope-preview+json' \
    "https://api.github.com/repos/octokit/plugin-rest-endpoint-methods.js/commits/master/check-suites" \
  | jq --raw-output '.check_suites[0]' \                                        
  | less

from plugin-rest-endpoint-methods.js.

gr2m avatar gr2m commented on June 14, 2024

The code & types are generated based on https://github.com/octokit/routes/, which scrapes the documentation at https://developer.github.com/v3/.

If the keys are missing in the docs, could you send an email to [email protected]? They will forward it to the right people. It would help if you would send along a curl request with the response showing the keys. Once the documentation is fixed, this repo will get updated automatically trough an update of @octokit/routes

from plugin-rest-endpoint-methods.js.

gr2m avatar gr2m commented on June 14, 2024

You can get the types from @octokit/openapi-types now

import { components } from "@octokit/openapi-types"

type CheckSuite = components["schemas"]["check-suite"]
const test: CheckSuite = {
    created_at: "",
    updated_at: "",
    latest_check_runs_count: 1,
    check_runs_url: "",
    head_commit: {},
    // ...
}

playground

from plugin-rest-endpoint-methods.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.