Skip to content

chore: switch source of GitHub defs#3

Merged
mnahkies merged 2 commits intomasterfrom
mn/fix/switch-github-defs
Jan 22, 2023
Merged

chore: switch source of GitHub defs#3
mnahkies merged 2 commits intomasterfrom
mn/fix/switch-github-defs

Conversation

@mnahkies
Copy link
Owner

github now has official openapi definitions available here: https://github.com/github/rest-api-description and has deprecated the ones we were using previously from https://github.com/octokit/routes/

this change swaps over to using the new ones, and refreshes the others. In the process a few problems emerged:

github now has official openapi definitions available here:
https://github.com/github/rest-api-description and has deprecated the
ones we were using previously from https://github.com/octokit/routes/

this change swaps over to using them, and refreshes the others. In the
process a few problems emerged:
- error in the new schema, fixed manually, see github/rest-api-description#2064 (comment)
- angular codegen not liking string literal arrays for query params
- "safe edit" code becoming out of date for a koa example
- needed to change the ajv import used for the openapi schema
- name collisions / invalid names for some github models. Fixed with a
  bandaid of prefixing by `t_` and converting `-` to `_` for now,
  however this feels a bit yuck and so plan to make this cleaner in a
  follow up change.
@mnahkies mnahkies enabled auto-merge (squash) January 22, 2023 18:20
@mnahkies mnahkies merged commit 24023b0 into master Jan 22, 2023
@mnahkies mnahkies deleted the mn/fix/switch-github-defs branch January 22, 2023 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant