Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add operations information to gen.lock for change reporting #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bflad
Copy link
Member

@bflad bflad commented Nov 6, 2024

Reference: https://www.notion.so/speakeasyapi/RFC-Improved-SDK-Changelogs-and-PR-Descriptions-135726c497cc80ecbd1bec3dcad8e85b?pvs=4

This change adds a Lockfile (gen.lock) type Operations field for API and SDK change reporting. This is intentionally a subset of operation data for prioritizing important information to present to API producers and consumers, while not exposing more of the generator internals. This information is intended to be self-contained to prevent the need for the generator or OAS-based tooling when generating API and SDK change reports, e.g. comparing the prior snapshot with a new one should contain everything necessary.

The operation representation metadata can be enhanced over time if additional SDK change reporting, such as new arguments, is desired.

This change adds a `gen.lock` (`LockFile`) type `Operations` field for API and SDK change reporting. This is intentionally a subset of operation data for prioritizing important information to present to API producers and consumers, while not exposing more of the generator internals. This information is intended to be self-contained to prevent the need for the generator or OAS-based tooling when generating API and SDK change reports, e.g. comparing the prior snapshot with a new one should contain everything necessary.

The operation representation metadata can be enhanced over time if additional SDK change reporting, such as new arguments, is desired.
@bflad bflad force-pushed the bflad/lockfile-operations branch from 4c46715 to d231c1a Compare November 6, 2024 22:54
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.

2 participants