Merge pull request #19955 from sennyeya/optic-integration-oa

feat: add support for validating OpenAPI specs against test runs
This commit is contained in:
Patrik Oldsberg
2023-10-24 10:54:22 +02:00
committed by GitHub
29 changed files with 2841 additions and 297 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/plugin-catalog-backend': patch
'@backstage/plugin-search-backend': patch
---
Update the OpenAPI spec with more complete error responses and request bodies using Optic. Also, updates the test cases to use the new `supertest` pass through from `@backstage/backend-openapi-utils`.
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/repo-tools': minor
---
Adds a new command `schema openapi test` that performs runtime validation of your OpenAPI specs using your test data. Under the hood, we're using Optic to perform this check, really cool work by them!
To use this new command, you will have to run `yarn add @useoptic/optic` in the root of your repo.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-openapi-utils': patch
---
Adds a new function `wrapInOpenApiTestServer` that allows for proxied requests at runtime. This will support the new `yarn backstage-repo-tools schema openapi test` command.