diff --git a/package-lock.json b/package-lock.json index a4fe8a6..a9226ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@restfulhead/nodejs-api-tools", + "name": "@restfulhead/azure-functions-nodejs-openapi-validator", "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@restfulhead/nodejs-api-tools", + "name": "@restfulhead/azure-functions-nodejs-openapi-validator", "version": "0.0.0", "license": "MIT", "workspaces": [ diff --git a/package.json b/package.json index 34b87c2..ce26abe 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@restfulhead/nodejs-api-tools", + "name": "@restfulhead/azure-functions-nodejs-openapi-validator", "version": "0.0.0", "description": "Collection of libraries for building Node.js APIs", "keywords": [ @@ -10,13 +10,13 @@ ], "author": "Patrick Ruhkopf", "license": "MIT", - "homepage": "https://github.com/restfulhead/nodejs-api-tools", + "homepage": "https://github.com/restfulhead/azure-functions-nodejs-openapi-validator", "repository": { "type": "git", - "url": "https://github.com/restfulhead/nodejs-api-tools.git" + "url": "git+https://github.com/restfulhead/azure-functions-nodejs-openapi-validator.git" }, "bugs": { - "url": "https://github.com/restfulhead/nodejs-api-tools/issues" + "url": "https://github.com/restfulhead/azure-functions-nodejs-openapi-validator/issues" }, "engines": { "node": ">=18.0" diff --git a/packages/ajv-openapi-request-response-validator/CHANGELOG.md b/packages/ajv-openapi-request-response-validator/CHANGELOG.md index 9c30d92..e69de29 100644 --- a/packages/ajv-openapi-request-response-validator/CHANGELOG.md +++ b/packages/ajv-openapi-request-response-validator/CHANGELOG.md @@ -1,9 +0,0 @@ -# v0.1.1 (Fri Mar 08 2024) - -#### 🔩 Internal - -- fix: release ci workflow [#3](https://github.com/restfulhead/azure-functions-nodejs-openapi-validator/pull/3) ([@restfulhead](https://github.com/restfulhead)) - -#### Authors: 1 - -- Patrick Ruhkopf ([@restfulhead](https://github.com/restfulhead)) diff --git a/packages/ajv-openapi-request-response-validator/README.md b/packages/ajv-openapi-request-response-validator/README.md index d7c6e15..1460844 100644 --- a/packages/ajv-openapi-request-response-validator/README.md +++ b/packages/ajv-openapi-request-response-validator/README.md @@ -15,7 +15,7 @@ This library contains an Open API v3.0 validator that validates http requests an * The default config sets AJV's `removeAdditional` to `false`, otherwise `allOf` validation may cause unexpected results * The default config sets AJV's `coerceTypes` to `false`, otherwise `anyof` validation may cause unexpected results * Query params are usually string values on the other hand, so this library coerces those by default prior to validation -* This library does not validate the Open API specification itself. I suggest you use another tool for this for now. +* This library does not validate the Open API specification itself. This might be added in future. To check out what is supported, take a look at the [test fixtures](./test/fixtures/) diff --git a/packages/ajv-openapi-request-response-validator/package.json b/packages/ajv-openapi-request-response-validator/package.json index bbfa207..eba608e 100644 --- a/packages/ajv-openapi-request-response-validator/package.json +++ b/packages/ajv-openapi-request-response-validator/package.json @@ -1,6 +1,6 @@ { "name": "@restfulhead/ajv-openapi-request-response-validator", - "version": "0.0.1", + "version": "0.1.0", "description": "AJV based implementation to validate http requests and responses against an OpenAPI schema", "keywords": [ "azure", @@ -10,13 +10,17 @@ ], "author": "Patrick Ruhkopf", "license": "MIT", - "homepage": "https://github.com/restfulhead/nodejs-api-tools/packages/ajv-openapi-request-response-validator", + "homepage": "https://github.com/restfulhead/azure-functions-nodejs-openapi-validator/packages/ajv-openapi-request-response-validator", "repository": { "type": "git", - "url": "https://github.com/restfulhead/nodejs-api-tools.git" + "url": "git+https://github.com/restfulhead/azure-functions-nodejs-openapi-validator.git" }, "bugs": { - "url": "https://github.com/restfulhead/nodejs-api-tools/issues" + "url": "https://github.com/restfulhead/azure-functions-nodejs-openapi-validator/issues" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" }, "engines": { "node": ">=18.0" diff --git a/packages/azure-functions-openapi-validator/package.json b/packages/azure-functions-openapi-validator/package.json index 87d7845..ae30b75 100644 --- a/packages/azure-functions-openapi-validator/package.json +++ b/packages/azure-functions-openapi-validator/package.json @@ -10,13 +10,17 @@ ], "author": "Patrick Ruhkopf", "license": "MIT", - "homepage": "https://github.com/restfulhead/nodejs-api-tools", + "homepage": "https://github.com/restfulhead/azure-functions-nodejs-openapi-validator", "repository": { "type": "git", - "url": "https://github.com/restfulhead/nodejs-api-tools.git" + "url": "git+https://github.com/restfulhead/azure-functions-nodejs-openapi-validator.git" }, "bugs": { - "url": "https://github.com/restfulhead/nodejs-api-tools/issues" + "url": "https://github.com/restfulhead/azure-functions-nodejs-openapi-validator/issues" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" }, "engines": { "node": ">=18.0"