feat: override openapi if exists json #15
Annotations
3 errors
|
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"
},
|
|
The logs for this run have expired and are no longer available.
Loading