feat: override openapi if exists json #15
Annotations
7 errors and 2 warnings
tests/index.test.ts > cli test > main:
tests/index.test.ts#L20
AssertionError: expected '{\n "openapi": "3.1.0",\n "info": {…' to be '{\n "openapi": "3.1.0",\n "info": {…' // Object.is equality
- Expected
+ Received
{
"openapi": "3.1.0",
"info": {
- "title": "title test api",
- "version": "v1.1"
+ "title": "openapi api",
+ "version": "v0.0"
},
"paths": {
"/api/stream/v1/stories/{storyId}": {
"get": {
"tags": [
"api",
"stream",
"v1",
"stories"
],
"parameters": [
{
"name": "storyId",
"in": "path",
"required": true,
"schema": {
"type": "number"
}
},
{
"name": "token",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "offset",
"in": "query",
"required": false,
"schema": {
"type": "number"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "OK",
"type": "object",
"properties": {
"count": {
"type": "number"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"type": {
"$ref": "#/components/schemas/CardEnumModel"
},
"createdByLabel": {
"type": "string"
},
"created": {
"type": "string"
},
"postedTime": {
"type": "string"
},
"updated": {
"type": "string"
},
"published": {
"type": "boolean"
},
"position": {
"type": "number"
},
"headline": {
"type": "string"
},
"quotePerson": {
"type": "string"
},
"quotePersonHandle": {
"type": "string"
},
"quote": {
"type": "string"
},
"title": {
"type": "string"
},
"sourceName": {
"type": "string"
},
"url": {
"type": "string"
},
"abstract": {
"type": "string"
},
"image": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
|
Test on Node:20 OS:ubuntu-latest
Process completed with exit code 1.
|
Test on Node:20 OS:windows-latest
The job was canceled because "_20_ubuntu-latest" failed.
|
Test on Node:20 OS:windows-latest
The operation was canceled.
|
Test on Node:18 OS:ubuntu-latest
The job was canceled because "_20_ubuntu-latest" failed.
|
tests/index.test.ts > cli test > main:
tests/index.test.ts#L20
AssertionError: expected '{\n "openapi": "3.1.0",\n "info": {…' to be '{\n "openapi": "3.1.0",\n "info": {…' // Object.is equality
- Expected
+ Received
{
"openapi": "3.1.0",
"info": {
- "title": "title test api",
- "version": "v1.1"
+ "title": "openapi api",
+ "version": "v0.0"
},
"paths": {
"/api/stream/v1/stories/{storyId}": {
"get": {
"tags": [
"api",
"stream",
"v1",
"stories"
],
"parameters": [
{
"name": "storyId",
"in": "path",
"required": true,
"schema": {
"type": "number"
}
},
{
"name": "token",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "offset",
"in": "query",
"required": false,
"schema": {
"type": "number"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"description": "OK",
"type": "object",
"properties": {
"count": {
"type": "number"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"type": {
"$ref": "#/components/schemas/CardEnumModel"
},
"createdByLabel": {
"type": "string"
},
"created": {
"type": "string"
},
"postedTime": {
"type": "string"
},
"updated": {
"type": "string"
},
"published": {
"type": "boolean"
},
"position": {
"type": "number"
},
"headline": {
"type": "string"
},
"quotePerson": {
"type": "string"
},
"quotePersonHandle": {
"type": "string"
},
"quote": {
"type": "string"
},
"title": {
"type": "string"
},
"sourceName": {
"type": "string"
},
"url": {
"type": "string"
},
"abstract": {
"type": "string"
},
"image": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
|
Test on Node:18 OS:ubuntu-latest
The operation was canceled.
|
Test on Node:20 OS:ubuntu-latest
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Test on Node:20 OS:ubuntu-latest
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|