Update to latest version of the GitBook API #3606
ci.yaml
on: pull_request
Format
1m 10s
Test
44s
Build (Open Source)
3m 53s
Typecheck
1m 42s
Annotations
5 errors
error: expect(received).toMatchObject(expected):
packages/react-openapi/src/resolveOpenAPIOperation.test.ts#L26
{
+ method: "put",
operation: {
+ description: "Update an existing pet by Id.",
+ operationId: "updatePet",
- description: "Update an existing pet by Id",
requestBody: {
content: {
"application/json": {
schema: {
+ properties: {
+ category: {
+ properties: {
+ id: {
+ example: 1,
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ example: "Dogs",
+ type: "string",
+ },
+ },
+ type: "object",
+ xml: {
+ name: "category",
+ },
+ },
+ id: {
+ example: 10,
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ example: "doggie",
+ type: "string",
+ },
+ photoUrls: {
+ items: {
+ type: "string",
+ xml: {
+ name: "photoUrl",
+ },
+ },
+ type: "array",
+ xml: {
+ wrapped: true,
+ },
+ },
+ status: {
+ description: "pet status in the store",
+ enum: [
+ "available",
+ "pending",
+ "sold"
+ ],
+ type: "string",
+ "x-gitbook-description-html": "pet status in the store",
+ },
+ tags: {
+ items: {
+ properties: {
+ id: {
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ type: "string",
+ },
+ },
+ type: "object",
+ xml: {
+ name: "tag",
+ },
+ },
+ type: "array",
+ xml: {
+ wrapped: true,
+ },
+ },
+ },
required: [
"name",
"photoUrls"
],
type: "object",
+ xml: {
+ name: "pet",
+ },
+ },
+ },
+ "application/x-www-form-urlencoded": {
+ schema: {
+ properties: {
+ category: {
+ properties: {
+ id: {
+ example: 1,
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ example: "Dogs",
+ type: "string",
+ },
+ },
+ type: "object",
+ xml: {
+ name: "category",
+ },
+ },
+ id: {
+ example: 10,
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ example: "doggie",
+ type: "string",
+ },
+ photoUrls: {
+ items: {
+ type: "string",
+ xml: {
+ name: "photoUrl",
+ },
+ },
+ type: "array",
+ xml: {
+ wrapped: true,
+ },
+ },
+ status: {
+ description: "pet status in the store",
+ enum: [
+ "available",
+ "pending",
+ "sold"
+ ],
+ type: "string",
+ "x-gitbook-description-html"
|
error: expect(received).toMatchObject(expected):
packages/react-openapi/src/resolveOpenAPIOperation.test.ts#L56
{
+ method: "put",
operation: {
+ description: "Update an existing pet by Id.",
+ operationId: "updatePet",
- description: "Update an existing pet by Id",
requestBody: {
content: {
"application/json": {
schema: {
+ properties: {
+ category: {
+ properties: {
+ id: {
+ example: 1,
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ example: "Dogs",
+ type: "string",
+ },
+ },
+ type: "object",
+ xml: {
+ name: "category",
+ },
+ },
+ id: {
+ example: 10,
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ example: "doggie",
+ type: "string",
+ },
+ photoUrls: {
+ items: {
+ type: "string",
+ xml: {
+ name: "photoUrl",
+ },
+ },
+ type: "array",
+ xml: {
+ wrapped: true,
+ },
+ },
+ status: {
+ description: "pet status in the store",
+ enum: [
+ "available",
+ "pending",
+ "sold"
+ ],
+ type: "string",
+ "x-gitbook-description-html": "pet status in the store",
+ },
+ tags: {
+ items: {
+ properties: {
+ id: {
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ type: "string",
+ },
+ },
+ type: "object",
+ xml: {
+ name: "tag",
+ },
+ },
+ type: "array",
+ xml: {
+ wrapped: true,
+ },
+ },
+ },
required: [
"name",
"photoUrls"
],
type: "object",
+ xml: {
+ name: "pet",
+ },
+ },
+ },
+ "application/x-www-form-urlencoded": {
+ schema: {
+ properties: {
+ category: {
+ properties: {
+ id: {
+ example: 1,
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ example: "Dogs",
+ type: "string",
+ },
+ },
+ type: "object",
+ xml: {
+ name: "category",
+ },
+ },
+ id: {
+ example: 10,
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ example: "doggie",
+ type: "string",
+ },
+ photoUrls: {
+ items: {
+ type: "string",
+ xml: {
+ name: "photoUrl",
+ },
+ },
+ type: "array",
+ xml: {
+ wrapped: true,
+ },
+ },
+ status: {
+ description: "pet status in the store",
+ enum: [
+ "available",
+ "pending",
+ "sold"
+ ],
+ type: "string",
+ "x-gitbook-description-html"
|
Test
@gitbook/react-openapi#unit: command (/home/runner/work/gitbook/gitbook/packages/react-openapi) /home/runner/.bun/bin/bun run unit exited (1)
|
error: expect(received).toMatchObject(expected):
packages/react-openapi/src/resolveOpenAPIOperation.test.ts#L154
{
+ method: "put",
operation: {
+ description: "Update an existing pet by Id.",
+ operationId: "updatePet",
- description: "Update an existing pet by Id",
requestBody: {
content: {
"application/json": {
schema: {
+ properties: {
+ category: {
+ properties: {
+ id: {
+ example: 1,
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ example: "Dogs",
+ type: "string",
+ },
+ },
+ type: "object",
+ xml: {
+ name: "category",
+ },
+ },
+ id: {
+ example: 10,
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ example: "doggie",
+ type: "string",
+ },
+ photoUrls: {
+ items: {
+ type: "string",
+ xml: {
+ name: "photoUrl",
+ },
+ },
+ type: "array",
+ xml: {
+ wrapped: true,
+ },
+ },
+ status: {
+ description: "pet status in the store",
+ enum: [
+ "available",
+ "pending",
+ "sold"
+ ],
+ type: "string",
+ "x-gitbook-description-html": "pet status in the store",
+ },
+ tags: {
+ items: {
+ properties: {
+ id: {
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ type: "string",
+ },
+ },
+ type: "object",
+ xml: {
+ name: "tag",
+ },
+ },
+ type: "array",
+ xml: {
+ wrapped: true,
+ },
+ },
+ },
required: [
"name",
"photoUrls"
],
type: "object",
+ xml: {
+ name: "pet",
+ },
+ },
+ },
+ "application/x-www-form-urlencoded": {
+ schema: {
+ properties: {
+ category: {
+ properties: {
+ id: {
+ example: 1,
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ example: "Dogs",
+ type: "string",
+ },
+ },
+ type: "object",
+ xml: {
+ name: "category",
+ },
+ },
+ id: {
+ example: 10,
+ format: "int64",
+ type: "integer",
+ },
+ name: {
+ example: "doggie",
+ type: "string",
+ },
+ photoUrls: {
+ items: {
+ type: "string",
+ xml: {
+ name: "photoUrl",
+ },
+ },
+ type: "array",
+ xml: {
+ wrapped: true,
+ },
+ },
+ status: {
+ description: "pet status in the store",
+ enum: [
+ "available",
+ "pending",
+ "sold"
+ ],
+ type: "string",
+ "x-gitbook-description-html"
|
Test
Process completed with exit code 1.
|