Skip to content

Conversation

@deitch
Copy link
Contributor

@deitch deitch commented Oct 14, 2024

A first attempt at resolving #1696

As request in that issue, I made it with yaml disabled by default, but could be enabled in output-options.

I explored making a CLI flag as well, but all of those that control config are listed as deprecated, and it says to use new config file style, so I left it as controllable via config file alone.

I probably missed something, in the tests and/or the templates. I did run it manually and it generated as expected, and I ran make test, so no regression should have been introduced. Looking for feedback on it.

Signed-off-by: Avi Deitcher <[email protected]>
@deitch
Copy link
Contributor Author

deitch commented Oct 25, 2024

Any feedback? I'd like to make this real. I was happy to do the work - and whatever else is needed to make it work - but I need the feedback.

@jamietanna
Copy link
Member

We're rather snowed under with the backlog of things to review (#1606) - please bare with!

We very much appreciate the contribution and hope to get to it before long!

@deitch
Copy link
Contributor Author

deitch commented Oct 25, 2024

Hi @jamietanna sure. "snowed under"? Yeah, I think I know that one all too well! Give me an ETA when you will be able to take a look? I will put it in my calendar as well to check on it.

@jamietanna
Copy link
Member

Give me an ETA

Sorry, I can't give any specifics, as I can't predict how long it'll take me to look at the others - given this is mostly a "free time" project, on top of ~7 hours of paid work/mo, and we're a heavily used project (which is awesome 🚀), the work keeps on coming in, and I try and do a little bit of triage where possible of incoming issues, and then work to review the PRs when I have a bit more focused time

You can see the immediate backlog in the v2.5.0 milestone, planned as the next release, of which I've added this into

@deitch
Copy link
Contributor Author

deitch commented Oct 25, 2024

Oh, yes, I certainly can relate! 😁

@jamietanna jamietanna merged commit d3a2029 into oapi-codegen:main Nov 28, 2024
18 checks passed
@jamietanna jamietanna changed the title option to include yaml tags feat(output-options): add yaml-tags option Nov 28, 2024
@deitch deitch deleted the json-and-yaml branch November 28, 2024 08:06
@deitch
Copy link
Contributor Author

deitch commented Nov 28, 2024

Cool! So was I in the right general direction?

@jamietanna
Copy link
Member

You were 🎉 thanks for the contribution!

@deitch
Copy link
Contributor Author

deitch commented Nov 28, 2024

I am glad to be of service. 😁

Will that go into a release anytime soon?

@jamietanna
Copy link
Member

It'll go in when I manage to get https://github.com/oapi-codegen/oapi-codegen/milestone/11 released, I've got a full day on oapi-codegen today (thanks to Elastic!) but there's a lot there, so will see

In the meantime, https://github.com/oapi-codegen/oapi-codegen/?tab=readme-ov-file#pinning-to-commits

@deitch
Copy link
Contributor Author

deitch commented Nov 28, 2024

Yup, that is what I do on my workstation. But within a project, I prefer to mark "greater than vX.Y.Z". Not urgent, I shall await it.

@deitch
Copy link
Contributor Author

deitch commented Nov 28, 2024

Although it would help if you know what the next version will be?

@jamietanna
Copy link
Member

@deitch
Copy link
Contributor Author

deitch commented Nov 28, 2024

Thanks @jamietanna !

@jamietanna jamietanna added the enhancement New feature or request label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants