Skip to content

feat(output-options): add yaml-tags option#1798

Merged
jamietanna merged 4 commits into
oapi-codegen:mainfrom
deitch:json-and-yaml
Nov 28, 2024
Merged

feat(output-options): add yaml-tags option#1798
jamietanna merged 4 commits into
oapi-codegen:mainfrom
deitch:json-and-yaml

Conversation

@deitch

@deitch deitch commented Oct 14, 2024

Copy link
Copy Markdown
Contributor

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

deitch commented Oct 25, 2024

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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

deitch commented Oct 25, 2024

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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

deitch commented Oct 25, 2024

Copy link
Copy Markdown
Contributor Author

Oh, yes, I certainly can relate! 😁

@jamietanna jamietanna merged commit d3a2029 into oapi-codegen:main Nov 28, 2024
@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

deitch commented Nov 28, 2024

Copy link
Copy Markdown
Contributor Author

Cool! So was I in the right general direction?

@jamietanna

Copy link
Copy Markdown
Member

You were 🎉 thanks for the contribution!

@deitch

deitch commented Nov 28, 2024

Copy link
Copy Markdown
Contributor Author

I am glad to be of service. 😁

Will that go into a release anytime soon?

@jamietanna

Copy link
Copy Markdown
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

deitch commented Nov 28, 2024

Copy link
Copy Markdown
Contributor Author

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

deitch commented Nov 28, 2024

Copy link
Copy Markdown
Contributor Author

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

@jamietanna

Copy link
Copy Markdown
Member

@deitch

deitch commented Nov 28, 2024

Copy link
Copy Markdown
Contributor Author

Thanks @jamietanna !

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