You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exports[`sortQuery orders the generated query in the URL > findPets 1`] =`"https://example.com/api/pets?limit=10&tags=cat&tags=dog"`;
4
+
5
+
exports[`sortQuery orders the generated query in the URL > imageCreate 1`] =`"https://example.com/v1.43/images/create?changes=ENV%20a%3D1,ENV%20b%3D2&fromImage=alpine&platform=linux%2Famd64&tag=latest"`;
6
+
7
+
exports[`the generated query reaches the URL in document order > findPets 1`] =`"https://example.com/api/pets?tags=cat&tags=dog&limit=10"`;
8
+
9
+
exports[`the generated query reaches the URL in document order > imageCreate 1`] =`"https://example.com/v1.43/images/create?fromImage=alpine&tag=latest&changes=ENV%20a%3D1,ENV%20b%3D2&platform=linux%2Famd64"`;
10
+
11
+
exports[`the source of a command that names a serializer 1`] =`
12
+
"import {Command, stripUndefined, deepObjectSerializer} from "@block65/rest-client";
13
+
14
+
export class ListThingsCommand extends Command<UndefinedOnPartialDeep<ListThingsCommandInput>, ListThingsCommandOutput, ListThingsCommandQuery> {
// OAS 3.2 added `in: "querystring"`, which the 3.1 types predate
6
+
exporttypeTestParameter=
7
+
|oas31.ParameterObject
8
+
|{
9
+
name: string;
10
+
in: "querystring";
11
+
content: oas31.ParameterObject["content"];
12
+
};
13
+
14
+
exportfunctiondocumentFor(
15
+
parameters: readonlyTestParameter[],
16
+
): oas31.OpenAPIObject{
17
+
return{
18
+
openapi: "3.1.0",
19
+
info: {title: "Test",version: "1.0.0"},
20
+
paths: {
21
+
"/things": {
22
+
get: {
23
+
operationId: "listThingsCommand",
24
+
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- TestParameter widens the 3.1 union by the one 3.2 location these tests exercise, and processOpenApiDocument takes a 3.1 document
0 commit comments