fix: post querykey #159
Annotations
4 errors and 1 warning
Test:
packages/swagger-client/src/OperationGenerator.test.tsx#L48
Error: Snapshot `OperationGenerator > [GET] should generate with pathParamsType `inline` 1` mismatched
- Expected
+ Received
@@ -4,11 +4,11 @@
/**
* @summary Info for a specific pet
* @link /pets/:pet_id
*/
- export async function showPetById(petId: ShowPetByIdPathParams["petId"], testId: ShowPetByIdPathParams["testId"], options: Partial<Parameters<typeof client>[0]> = {}): Promise<ResponseConfig<ShowPetByIdQueryResponse>["data"]> {
+ export async function showPetById(petId: ShowPetByIdPathParams["pet_id"], testId: ShowPetByIdPathParams["testId"], options: Partial<Parameters<typeof client>[0]> = {}): Promise<ResponseConfig<ShowPetByIdQueryResponse>["data"]> {
const res = await client<ShowPetByIdQueryResponse>({
method: "get",
url: `/pets/${petId}`,
...options
});
❯ packages/swagger-client/src/OperationGenerator.test.tsx:48:43
❯ packages/swagger-client/src/OperationGenerator.test.tsx:47:11
|
Test:
packages/swagger-client/src/OperationGenerator.test.tsx#L78
Error: Snapshot `OperationGenerator > [GET] should generate with pathParamsType `object` 1` mismatched
- Expected
+ Received
@@ -5,11 +5,11 @@
/**
* @summary Info for a specific pet
* @link /pets/:pet_id
*/
export async function showPetById({ petId, testId }: {
- petId: ShowPetByIdPathParams["petId"];
+ petId: ShowPetByIdPathParams["pet_id"];
testId: ShowPetByIdPathParams["testId"];
}, options: Partial<Parameters<typeof client>[0]> = {}): Promise<ResponseConfig<ShowPetByIdQueryResponse>["data"]> {
const res = await client<ShowPetByIdQueryResponse>({
method: "get",
url: `/pets/${petId}`,
❯ packages/swagger-client/src/OperationGenerator.test.tsx:78:43
❯ packages/swagger-client/src/OperationGenerator.test.tsx:77:11
|
Test:
packages/swagger-client/src/OperationGenerator.test.tsx#L111
Error: Snapshot `OperationGenerator > [GET] should generate with templates 1` mismatched
- Expected
+ Received
@@ -6,11 +6,11 @@
/**
* @summary Info for a specific pet
* @link /pets/:pet_id
*/
export async function showPetById({ petId, testId }: {
- petId: ShowPetByIdPathParams["petId"];
+ petId: ShowPetByIdPathParams["pet_id"];
testId: ShowPetByIdPathParams["testId"];
}, options: Partial<Parameters<typeof client>[0]> = {}): Promise<ResponseConfig<ShowPetByIdQueryResponse>["data"]> {
return axios.get(`/pets/${petId}`, options);
}
"
❯ packages/swagger-client/src/OperationGenerator.test.tsx:111:43
❯ packages/swagger-client/src/OperationGenerator.test.tsx:110:11
|
Test
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/[email protected], actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The logs for this run have expired and are no longer available.
Loading