Small feature release #8
Annotations
7 errors
__tests__/json-schema.test.ts > Example > JSON Schema snapshot:
__tests__/json-schema.test.ts#L11
Error: Snapshot `Example > JSON Schema snapshot 1` mismatched
- Expected
+ Received
@@ -45,10 +45,11 @@
"name",
],
"type": "object",
},
"Id": {
+ "additionalProperties": false,
"type": "string",
},
"UpdateUserRequest": {
"additionalProperties": false,
"minProperties": 1,
@@ -93,10 +94,11 @@
"name",
],
"type": "object",
},
"Users": {
+ "additionalProperties": false,
"items": {
"$ref": "#/components/schemas/User",
},
"type": "array",
"uniqueItems": true,
❯ __tests__/json-schema.test.ts:11:24
|
__tests__/json-schema.test.ts > Note Taking > JSON Schema snapshot:
__tests__/json-schema.test.ts#L24
Error: Snapshot `Note Taking > JSON Schema snapshot 1` mismatched
- Expected
+ Received
@@ -62,10 +62,11 @@
"name",
],
"type": "object",
},
"Id": {
+ "additionalProperties": false,
"maxLength": 6,
"minLength": 6,
"type": "string",
},
"Note": {
@@ -91,10 +92,11 @@
"content",
],
"type": "object",
},
"Notes": {
+ "additionalProperties": false,
"items": {
"$ref": "#/components/schemas/Note",
},
"type": "array",
"uniqueItems": true,
@@ -157,10 +159,11 @@
"name",
],
"type": "object",
},
"Users": {
+ "additionalProperties": false,
"items": {
"$ref": "#/components/schemas/User",
},
"type": "array",
"uniqueItems": true,
❯ __tests__/json-schema.test.ts:24:24
|
__tests__/openapi-schema.test.ts > Example > OpenAPI:
__tests__/openapi-schema.test.ts#L9
Error: Snapshot `Example > OpenAPI 1` mismatched
- Expected
+ Received
@@ -55,10 +55,11 @@
"name",
],
"type": "object",
},
"Id": {
+ "additionalProperties": false,
"type": "string",
},
"UpdateUserRequest": {
"additionalProperties": false,
"minProperties": 1,
@@ -103,10 +104,11 @@
"name",
],
"type": "object",
},
"Users": {
+ "additionalProperties": false,
"items": {
"$ref": "#/components/schemas/User",
},
"type": "array",
"uniqueItems": true,
@@ -239,11 +241,11 @@
"schema": {
"$ref": "#/components/schemas/User",
},
},
},
- "description": "",
+ "description": "Successful response",
},
},
"tags": [],
},
},
❯ __tests__/openapi-schema.test.ts:9:22
|
__tests__/openapi-schema.test.ts > Example > Swagger Parser validate:
__tests__/openapi-schema.test.ts#L16
Error: Snapshot `Example > Swagger Parser validate 1` mismatched
- Expected
+ Received
@@ -4,10 +4,11 @@
"UserId": {
"in": "path",
"name": "userId",
"required": true,
"schema": {
+ "additionalProperties": false,
"type": "string",
},
},
},
"schemas": {
@@ -58,19 +59,21 @@
},
"name": {
"type": "string",
},
"userId": {
+ "additionalProperties": false,
"type": "string",
},
},
"required": [
"name",
],
"type": "object",
},
"Id": {
+ "additionalProperties": false,
"type": "string",
},
"UpdateUserRequest": {
"additionalProperties": false,
"minProperties": 1,
@@ -130,19 +133,21 @@
},
"name": {
"type": "string",
},
"userId": {
+ "additionalProperties": false,
"type": "string",
},
},
"required": [
"name",
],
"type": "object",
},
"Users": {
+ "additionalProperties": false,
"items": {
"additionalProperties": false,
"properties": {
"address": {
"additionalProperties": false,
@@ -173,10 +178,11 @@
},
"name": {
"type": "string",
},
"userId": {
+ "additionalProperties": false,
"type": "string",
},
},
"required": [
"name",
@@ -207,10 +213,11 @@
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
+ "additionalProperties": false,
"items": {
"additionalProperties": false,
"properties": {
"address": {
"additionalProperties": false,
@@ -241,10 +248,11 @@
},
"name": {
"type": "string",
},
"userId": {
+ "additionalProperties": false,
"type": "string",
},
},
"required": [
"name",
@@ -300,10 +308,11 @@
},
"name": {
"type": "string",
},
"userId": {
+ "additionalProperties": false,
"type": "string",
},
},
"required": [
"name",
@@ -318,10 +327,11 @@
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
+ "additionalProperties": false,
"items": {
"additionalProperties": false,
"properties": {
"address": {
"additionalProperties": false,
@@ -352,10 +362,11 @@
},
"name": {
"type": "string",
},
"userId": {
+ "additionalProperties": false,
"type": "string",
},
},
"required": [
"name",
@@ -429,10 +440,11 @@
},
"name": {
"type": "string",
},
"userId": {
+ "additionalProperties": false,
"type": "string",
},
|
__tests__/openapi-schema.test.ts > Note Taking > OpenAPI:
__tests__/openapi-schema.test.ts#L23
Error: Snapshot `Note Taking > OpenAPI 1` mismatched
- Expected
+ Received
@@ -88,10 +88,11 @@
"name",
],
"type": "object",
},
"Id": {
+ "additionalProperties": false,
"maxLength": 6,
"minLength": 6,
"type": "string",
},
"Note": {
@@ -117,10 +118,11 @@
"content",
],
"type": "object",
},
"Notes": {
+ "additionalProperties": false,
"items": {
"$ref": "#/components/schemas/Note",
},
"type": "array",
"uniqueItems": true,
@@ -183,10 +185,11 @@
"name",
],
"type": "object",
},
"Users": {
+ "additionalProperties": false,
"items": {
"$ref": "#/components/schemas/User",
},
"type": "array",
"uniqueItems": true,
@@ -286,15 +289,15 @@
"head": {
"operationId": "checkUserIdAvailableCommand",
"responses": {
"204": {
"content": {},
- "description": "",
+ "description": "Successful response",
},
"404": {
"content": {},
- "description": "",
+ "description": "Successful response",
},
},
"security": [
{},
],
@@ -325,11 +328,11 @@
"schema": {
"$ref": "#/components/schemas/User",
},
},
},
- "description": "",
+ "description": "Successful response",
},
},
"tags": [],
},
},
@@ -446,11 +449,11 @@
"schema": {
"$ref": "#/components/schemas/Note",
},
},
},
- "description": "",
+ "description": "Successful response",
},
},
"tags": [],
},
},
❯ __tests__/openapi-schema.test.ts:23:22
|
__tests__/openapi-schema.test.ts > Note Taking > Swagger Parser validate:
__tests__/openapi-schema.test.ts#L30
Error: Snapshot `Note Taking > Swagger Parser validate 1` mismatched
- Expected
+ Received
@@ -4,30 +4,33 @@
"NoteId": {
"in": "path",
"name": "noteId",
"required": true,
"schema": {
+ "additionalProperties": false,
"maxLength": 6,
"minLength": 6,
"type": "string",
},
},
"NoteUserId": {
"in": "path",
"name": "userId",
"required": true,
"schema": {
+ "additionalProperties": false,
"maxLength": 6,
"minLength": 6,
"type": "string",
},
},
"UserId": {
"in": "path",
"name": "userId",
"required": true,
"schema": {
+ "additionalProperties": false,
"maxLength": 6,
"minLength": 6,
"type": "string",
},
},
@@ -97,10 +100,11 @@
},
"name": {
"type": "string",
},
"userId": {
+ "additionalProperties": false,
"maxLength": 6,
"minLength": 6,
"type": "string",
},
},
@@ -108,10 +112,11 @@
"name",
],
"type": "object",
},
"Id": {
+ "additionalProperties": false,
"maxLength": 6,
"minLength": 6,
"type": "string",
},
"Note": {
@@ -137,10 +142,11 @@
"content",
],
"type": "object",
},
"Notes": {
+ "additionalProperties": false,
"items": {
"additionalProperties": false,
"properties": {
"content": {
"type": "string",
@@ -239,10 +245,11 @@
},
"name": {
"type": "string",
},
"userId": {
+ "additionalProperties": false,
"maxLength": 6,
"minLength": 6,
"type": "string",
},
},
@@ -250,10 +257,11 @@
"name",
],
"type": "object",
},
"Users": {
+ "additionalProperties": false,
"items": {
"additionalProperties": false,
"properties": {
"address": {
"additionalProperties": false,
@@ -277,10 +285,11 @@
},
"name": {
"type": "string",
},
"userId": {
+ "additionalProperties": false,
"maxLength": 6,
"minLength": 6,
"type": "string",
},
},
@@ -313,10 +322,11 @@
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
+ "additionalProperties": false,
"items": {
"additionalProperties": false,
"properties": {
"address": {
"additionalProperties": false,
@@ -340,10 +350,11 @@
},
"name": {
"type": "string",
},
"userId": {
+ "additionalProperties": false,
"maxLength": 6,
"minLength": 6,
"type": "string",
},
},
@@ -394,10 +405,11 @@
},
"name": {
"type": "string",
},
"userId": {
+ "additionalProperties": false,
"maxLength": 6,
"minLength": 6,
"type": "string",
},
},
@@ -414,10 +426,11 @@
"responses": {
"200": {
"content": {
"applicat
|
test
Process completed with exit code 2.
|