Use permalink in packages/backend-openapi-utils/README.md

Signed-off-by: Jaan Jahilo <jaanjahilo@outlook.com>
This commit is contained in:
Jaan Jahilo
2023-04-22 17:18:13 +03:00
parent 24190f903f
commit 2e19fca42b
+1 -1
View File
@@ -42,4 +42,4 @@ Router() as ApiRouter<DeepWriteable<typeof spec>>
### Runtime validation
Using a package like [`express-openapi-validator`](https://www.npmjs.com/package/express-openapi-validator), would allow us to remove [validation of request bodies with `AJV`](https://github.com/backstage/backstage/blob/master/plugins/catalog-backend/src/service/util.ts#L58). However, `AJV` currently doesn't have support for OpenAPI 3.1 and `express-openapi-validator` enforces full URL matching for paths, meaning it cannot be mounted at the router level.
Using a package like [`express-openapi-validator`](https://www.npmjs.com/package/express-openapi-validator), would allow us to remove [validation of request bodies with `AJV`](https://github.com/backstage/backstage/blob/e0506af8fc54074a160fb91c83d6cae8172d3bb3/plugins/catalog-backend/src/service/util.ts#L58). However, `AJV` currently doesn't have support for OpenAPI 3.1 and `express-openapi-validator` enforces full URL matching for paths, meaning it cannot be mounted at the router level.