OpenAPI 3.2 in projects
/ade/dashboard/versions
OpenAPI 3.2 adds four things a project's paths can hold:
| Construct | What it is |
|---|---|
| QUERY and custom methods | The safe, body-bearing QUERY method (the Path Item's query field), and any other HTTP method such as REPORT or LINK, keyed by its token under additionalOperations |
| Tag hierarchy | A Tag Object's summary, its parent (another tag, so tags form a tree) and its kind (for example nav, badge or audience) |
| Streaming media types | A request body or response whose content is a stream — JSON Lines, JSON text sequences, Server-Sent Events — described one element at a time with itemSchema |
in: querystring | A parameter that is the whole query string, given as one value with content (usually application/x-www-form-urlencoded) |
A project keeps each of them when you import an OpenAPI 3.2 document. You can also add them with the REST API, see them in the spec viewer and in version diffs, and get them back in OpenAPI 3.2 exports. How the rest of Apiome's OpenAPI support fits together is on OpenAPI in Apiome.
Which documents show them
Each construct is written in the form the target version has:
| Construct | OpenAPI 3.2 | OpenAPI 3.1 |
|---|---|---|
| QUERY operation | query | x-apiome-query-operation |
| Custom method | additionalOperations.<METHOD> | x-apiome-additional-operations.<METHOD> |
| Streaming media type | itemSchema | x-apiome-item-schema |
in: querystring parameter | written | left out (3.1 has no such location) |
Tag summary, parent, kind | written | left out (name, description and externalDocs stay) |
The x-apiome-* extensions are how a 3.1 document keeps an operation that 3.1 has no field for.
Importing that document brings the operations back. No 3.2 field ever appears in a 3.1 document.
The spec viewer and version diffs build OpenAPI 3.2, so they show every construct. For Export to another format…, see Export a spec. That page also explains how a 3.2 → 3.1 export lists each construct it could not keep.
See them in the spec viewer
-
Open the project on Versions.
-
On the revision's row, open the “Actions” menu and choose “View spec”.
-
The dialog's title names the version the document declares (OpenAPI 3.2.0 specification). When the document uses any of the four constructs, OpenAPI 3.2.0 constructs above the code lists them, one group each:
- QUERY and custom methods — the method, the path, the
operationIdand the field it is declared in (queryoradditionalOperations). - Tag hierarchy — each tag with a
parent,kindorsummary. - Streaming media types — the media type, its stream family and where it is.
- Query string parameters — the operation, the parameter and its media type.
A group with nothing in it is not shown. A 3.0 or 3.1 document has no panel.
- QUERY and custom methods — the method, the path, the


/ade/dashboard/versionsChoose YAML to read the document's tags with their parent and kind:


/ade/dashboard/versionsTo see what changed between two revisions, compare them on Versions (see
Versions). A QUERY operation, a new additionalOperations method, a changed
parent or a new itemSchema shows as a line of the OpenAPI 3.2 document.
With the REST API
Paths, operations, parameters and content types use the routes on Edit paths and operations.
QUERY and custom methods
Create the operation with its method token. Any RFC 9110
token is accepted; a space, a / or an empty method is refused with 422.
POST /v1/paths/{tenant_slug}/{version_id}/{path_id}/operations
X-API-Key: <your-api-key>
{ "operation": "QUERY" }
GET … TRACE are the fixed verbs; QUERY is written as query; anything else (REPORT) goes
under additionalOperations with the token as you sent it. QUERY and custom methods keep their
request body, as POST, PUT and PATCH do.
Streaming media types
Add the content type with item_schema: true. Its class or inline schema then describes each
element of the stream, not the whole body:
POST /v1/paths/{tenant_slug}/{version_id}/{path_id}/responses/{response_id}/content-types
X-API-Key: <your-api-key>
{ "media_type": "application/jsonl", "class_id": "<Order class id>", "item_schema": true }
The same field is on …/request-bodies/{request_body_id}/content-types. It defaults to false.
in: querystring
Create the parameter with in_location: "querystring". data.contentMediaType is its media type
(default application/x-www-form-urlencoded); the rest of data is the schema of the whole query
string:
POST /v1/paths/{tenant_slug}/{version_id}/{path_id}/parameters
X-API-Key: <your-api-key>
{
"name": "filter",
"in_location": "querystring",
"data": {
"type": "object",
"properties": { "status": { "type": "string" } },
"contentMediaType": "application/x-www-form-urlencoded"
}
}
in_location must be path, query, header, cookie or querystring.
Tag hierarchy
A project's tags are one list, in document order:
| Action | Method & route |
|---|---|
| Read the tags | GET /v1/projects/{tenant_slug}/{project_id}/openapi-tags |
| Replace the tags | PUT /v1/projects/{tenant_slug}/{project_id}/openapi-tags |
PUT /v1/projects/{tenant_slug}/{project_id}/openapi-tags
X-API-Key: <your-api-key>
{
"tags": [
{ "name": "orders", "summary": "Orders", "description": "Everything about orders", "kind": "nav" },
{ "name": "order-search", "summary": "Search", "parent": "orders", "kind": "nav" },
{ "name": "beta", "kind": "badge" }
]
}
The list replaces the stored one, and [] clears it. The request is refused with 422
(invalid_tags, one message per problem) when:
- a name is listed twice;
- a
parentis the tag itself or names a tag that is not in the list; parentlinks form a cycle.
If someone else changed the project while you saved, the request returns 409 (update_conflict).
Read the tags again and retry. An OpenAPI import fills the same list from the document's tags.
Verify
- Spec viewer: View spec on the revision lists the construct under OpenAPI 3.2.0 constructs.
- Round trip: in the spec viewer, click “Download” and import the file into a new project (see Import a spec). The new project's spec viewer lists the same operations, tags, streams and query string parameters.
Related
- Edit paths and operations — the path, operation and content-type routes
- OpenAPI construct matrix — every OpenAPI construct, version by version
- Export a spec — choose the OpenAPI version an export writes