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