In case you missed it, we released Pants 2.25.0 a ...
# general
b
In case you missed it, we released Pants 2.25.0 a little while ago: https://www.pantsbuild.org/blog/2025/03/01/pants-2-25
👍 1
e
Where would I find some docs about the new openAPI backend for python?
b
Good question! @square-psychiatrist-19087 do you have any tips? (Thanks for doing the work, btw)
s
Hey, I'm happy you want to use it 🙂 Unfortunately OpenAPI features in pants are underdocumented, I'm going to write some docs at some point. But for now try looking at openapi_documents target (for some reason extra python related fields didn't get rendered on pantsbuild.org, but you can look here) . It works just like every other codegen in pants - the target produces some files. You can directly depend on the target or just import the generated package - pants should infer the dependency. To see what gets generated run
pants export-codegen :your-document-target
👀 1
e
Thanks for working on it!