From 47fdbb4d96a22021f2f6463ab6fc4bb48bbce098 Mon Sep 17 00:00:00 2001 From: aramissennyeydd Date: Sun, 7 Jul 2024 17:58:34 -0400 Subject: [PATCH] add changeset and revert generated file change Signed-off-by: aramissennyeydd --- .changeset/slow-mayflies-sleep.md | 5 +++++ .../src/generated/apis/DefaultApi.client.ts | 9 +++------ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 .changeset/slow-mayflies-sleep.md diff --git a/.changeset/slow-mayflies-sleep.md b/.changeset/slow-mayflies-sleep.md new file mode 100644 index 0000000000..ebfb9d12d4 --- /dev/null +++ b/.changeset/slow-mayflies-sleep.md @@ -0,0 +1,5 @@ +--- +'@backstage/repo-tools': minor +--- + +Adds a `--watch` mode to the `schema openapi generate` command for a better local schema writing experience. diff --git a/packages/catalog-client/src/generated/apis/DefaultApi.client.ts b/packages/catalog-client/src/generated/apis/DefaultApi.client.ts index 598d9c706f..1f1c54d6f8 100644 --- a/packages/catalog-client/src/generated/apis/DefaultApi.client.ts +++ b/packages/catalog-client/src/generated/apis/DefaultApi.client.ts @@ -276,14 +276,13 @@ export class DefaultApiClient { /** * Get a batch set of entities given an array of entityRefs. - * @param filter Filter for just the entities defined by this filter. * @param getEntitiesByRefsRequest */ public async getEntitiesByRefs( // @ts-ignore request: { body: GetEntitiesByRefsRequest; - query: { + query?: { filter?: Array; }; }, @@ -291,11 +290,9 @@ export class DefaultApiClient { ): Promise> { const baseUrl = await this.discoveryApi.getBaseUrl(pluginId); - const uriTemplate = `/entities/by-refs{?filter*}`; + const uriTemplate = `/entities/by-refs/{?filter*}`; - const uri = parser.parse(uriTemplate).expand({ - ...request.query, - }); + const uri = parser.parse(uriTemplate).expand({ ...request.query }); return await this.fetchApi.fetch(`${baseUrl}${uri}`, { headers: {