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

(feature): Add encoding and source nodes #4240

Merged
merged 9 commits into from
Aug 9, 2024
Merged

Conversation

amckinney
Copy link
Contributor

@amckinney amckinney commented Aug 8, 2024

This updates the OpenAPI and IR generators to include encoding and source nodes where relevant. This makes it possible to track the original source of an OpenAPI type, so that we can include additional context in the generated IR.

For Protobuf inputs, we include a lightweight ProtobufParser to read specific values we're interested in (including the gRPC service name).

In a follow-up, we'll add even more information in the IR's top-level SourceConfig property, and add more configurability via the x-fern-encoding extension.

Note that this also enables LFS for the fhir.json testdata files since they're way too large (hence the significant number of removed lines in this commit).

@amckinney amckinney requested a review from dsinghvi as a code owner August 8, 2024 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants