openapiVersion option controls what gets served — '3.1' and '3.0' each run a downconversion pass on the finished document:
payload.config.ts
Nested tags
Scalar and Swagger UI don’t render OpenAPI 3.2 nested tags yet. The
nestedTags option is off by default, so
doc.tags is a flat list of per-entity tags with descriptions. Turn it on only if your consumer understands the 3.2
kind/parent tag tree.nestedTags: true, the plugin emits the 3.2 tag hierarchy: navigation groups via kind/parent, plus per-entity auth and version sub-tags.
Downconverting yourself
The downconverters are also exported astoOpenApi30 and toOpenApi31, so you can build a 3.2 document programmatically and convert it in your own code. See Exports.