Comments (2)
Thanks for reporting this. It is indeed a bug in the generated documentation for our the API.
A bit of technical detail: Our API can be accessed via gRPC or as JSON-over-HTTP, with the latter being implemented in terms of the former. The canonical service definition can be found in api.proto, which uses int64
for these fields, which is encoded as string
in JSON to avoid precision loss when used from JavaScript, whose number
type only supports integers up to 2^53-1.
As a short-term fix, we have updated our documentation generator and regenerated the documentation to correctly describe these fields as string
. In a future version of the API, we will change their type to int32
/number
, but for now, we want to avoid breaking existing clients.
from deps.dev.
Thank you so much for the answer @sarnesjo.
So I have to assume ALL number types in that docs mean string (e.g. edges[].fromNode: number in GetDependencies) or the ones having type uint32 are okay?
from deps.dev.
Related Issues (20)
- Unresolved dependency tree in go HOT 1
- The maven component query return data is missing the publishedAt field. HOT 1
- license ids do not always correspond to the official SPDX list HOT 2
- Commercial use of deps.dev HOT 1
- Compatibility v3 - v3alpha HOT 2
- Missing version for Go package github.com/cncf/xds/go
- Missing Go package github.com/docker/cli HOT 1
- Missing version for Go package github.com/opencontainers/image-spec
- Support Go standard library package
- Missing version for Go package github.com/asaskevich/govalidator
- Frequent missing publishedAt element for versions where default = true HOT 1
- Python (PyPi) version numbers padded with '.0' HOT 2
- REST API similarlyNamedPackages returns no results HOT 2
- How to choose the default version of a package HOT 1
- Surface deprecation warnings that appear in the UI HOT 2
- PurlLookup does not work for Go module names containing uppercase letters HOT 7
- Support PEP 639 for PyPI licenses HOT 2
- Add dependent counts to the API HOT 7
- purlLookupBatch Fails Entire Batch If Any Repo Is Missing HOT 3
- Expose package ecosystem specific messages for deprecation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deps.dev.