Query Library: Update API client (#99382)

* Add process script

* Working version

* Use new types

* Use new types

* Update client

* Tweaks

* Process multiple specs

* Remove 'any' types

* Use BASE_URL

* Update CODEOWNERS

* Fix filename

* add openapi

* update CODEOWNDER

* use JSONeq

* Use existing specs

* Filter ForAllNamespaces

* Add instructions

* Switch to tsx

* Use openapi-types

* Update src path

* Expand docs

* Update docs

* Rename script

* codeowners

* More docs

* Move openapi-types to dev deps

* Update error message

* Update doc

* Fix typo

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
Alex Khomenko
2025-01-29 18:05:40 +02:00
committed by GitHub
parent 0613ed1f11
commit 9f4e8ee206
15 changed files with 260 additions and 111 deletions
+3 -2
View File
@@ -63,7 +63,7 @@ func TestIntegrationOpenAPIs(t *testing.T) {
dir := "openapi_snapshots"
for _, gv := range []schema.GroupVersion{{
var groups = []schema.GroupVersion{{
Group: "dashboard.grafana.app",
Version: "v0alpha1",
}, {
@@ -72,7 +72,8 @@ func TestIntegrationOpenAPIs(t *testing.T) {
}, {
Group: "peakq.grafana.app",
Version: "v0alpha1",
}} {
}}
for _, gv := range groups {
VerifyOpenAPISnapshots(t, dir, gv, h)
}
}