Skip to content

Commit

Permalink
fixup! feat: added implementation of devfileSchema API
Browse files Browse the repository at this point in the history
  • Loading branch information
olexii4 committed Dec 12, 2022
1 parent c0a2737 commit 09a3def
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dashboard-backend/src/routes/api/devfileSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { JSONSchema7 } from 'json-schema';

const tags = ['Devfile'];

type DevfileSchemaV100 = { [key: string]: any };
type DevfileSchemaV100 = { [key: string]: unknown };

export function registerDevfileSchemaRoute(server: FastifyInstance) {
server.get(
Expand All @@ -47,7 +47,7 @@ export function registerDevfileSchemaRoute(server: FastifyInstance) {
case '2.2.1-alpha':
return devfileSchemaV221Alpha;
}
reply.code(204);
reply.code(404);
},
);
}

0 comments on commit 09a3def

Please sign in to comment.