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

Implement Jinja Code Generation #1

Merged
merged 14 commits into from
Oct 17, 2023
Merged

Conversation

nkzou
Copy link
Collaborator

@nkzou nkzou commented Aug 9, 2023

uses the go generator code, modified to output Rust

pub async fn CreateFastlyService(
configuration: &configuration::Configuration,
params: CreateFastlyServiceParams,
) -> Result<ResponseContent<crate::datadogV2::FastlyServiceResponse>, Error<CreateFastlyServiceError>>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to think about having an interface that only returns FastlyServiceResponse. Maybe we can use the with_http_info pattern that is present in Java and Python for example.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea, the normal create_fastly_service function can be a small wrapper around create_fastly_service_with_http_info for example. Will test it out

@therve
Copy link

therve commented Oct 4, 2023

Looks really good. We should solve some high level interface issues before bringing in more APIs, but this is a great start.

It would also be nice to have slightly more directory structure. I'm thinking at least separate apis and models.

@nkzou nkzou merged commit 0b3ea7d into master Oct 17, 2023
2 checks passed
@nkzou nkzou deleted the kevinzou/migrate-generation branch October 17, 2023 14:12
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.

None yet

2 participants