Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Do not export methods #75

Open
ehmicky opened this issue Oct 2, 2019 · 0 comments
Open

Do not export methods #75

ehmicky opened this issue Oct 2, 2019 · 0 comments

Comments

@ehmicky
Copy link
Contributor

ehmicky commented Oct 2, 2019

I think methods should remain an internal representation of the OpenAPI specification. Exporting it makes it harder to change that internal representation without introducing breaking changes.

Users that need to know which methods we expose should either:

  • use Object.keys(NetlifyAPI.prototype)
  • require @netlify/open-api

There are currently no public repositories that use that exported variable on GitHub, except our own repositories. So we would need to modify it in our repositories, then make a major release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant