Address review feedback: zod import path and legacy route ref

Use explicit zod/v4 import path in tests, and remove unnecessary
convertLegacyRouteRef wrapper in catalog-graph README.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-04-10 16:54:06 +02:00
parent 461d4fc48b
commit 5b6061ac77
2 changed files with 2 additions and 3 deletions
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { z as zodV4 } from 'zod';
import { z as zodV4 } from 'zod/v4';
import {
createConfigSchema,
mergePortableSchemas,
+1 -2
View File
@@ -289,7 +289,6 @@ import {
createFrontendModule,
PageBlueprint,
} from '@backstage/frontend-plugin-api';
import { convertLegacyRouteRef } from '@backstage/core-compat-api';
import { catalogGraphRouteRef } from '@backstage/plugin-catalog-graph';
export default createFrontendModule({
@@ -298,7 +297,7 @@ export default createFrontendModule({
PageBlueprint.make({
params: {
path: '/catalog-graph',
routeRef: convertLegacyRouteRef(catalogGraphRouteRef),
routeRef: catalogGraphRouteRef,
loader: () =>
import('./components').then(m => <m.CustomEntityRelationsPage />),
},