Git Product home page Git Product logo

Comments (4)

lucascosti avatar lucascosti commented on June 7, 2024 1

Thanks a lot for that detail, @mattpolzin! I can see it now (I was previously looking in the api.github.com description).

After testing the functionality of the endpoint that uses that schema (e.g. GET /feeds on a GHES 2.22 server), it actually doesn't return an array. _links just contains objects.

I'll get this fixed up in the schema 👍

from rest-api-description.

lucascosti avatar lucascosti commented on June 7, 2024

@mattpolzin Thanks for this report, but I'm having trouble finding this array in the schema; it might have already been fixed. Can you check and let me know if it's still there? A commit SHA/filename/line number would be great 🙇‍♂️

from rest-api-description.

mattpolzin avatar mattpolzin commented on June 7, 2024

Sure, with the current HEAD commit of main (SHA 015ac73e48d69e9b2ee968682be32ab03865e5a2), the _links object is on line 34588 of /descriptions/ghes-2.22/ghes-2.22.yaml.

Line 34590 starts the required array:

required:
- timeline
- user

This required array is does not make sense on the _links object which is of type "array". On the other hand, timeline and user are both properties of the associated items object that starts on line 34593 which leads me to the "expected" section from my original issue report that suggests moving the required array into the items object is probably the desired course of action.

from rest-api-description.

lucascosti avatar lucascosti commented on June 7, 2024

This has been fixed internally, and should be propagated to the public schema soon 🚀

from rest-api-description.

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.