-
-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: application overview issues schema (#6329)
- Loading branch information
Showing
5 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
frontend/src/component/application/ApplicationList/PaginatedApplicationList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/lib/openapi/spec/application-overview-issues-schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { FromSchema } from 'json-schema-to-ts'; | ||
|
||
export const applicationOverviewIssuesSchema = { | ||
$id: '#/components/schemas/applicationOverviewIssuesSchema', | ||
type: 'object', | ||
description: 'This list of issues that might be wrong with the application', | ||
additionalProperties: false, | ||
required: ['type', 'items'], | ||
properties: { | ||
type: { | ||
type: 'string', | ||
enum: ['missingFeature', 'missingStrategy'], | ||
description: 'The name of this action.', | ||
}, | ||
items: { | ||
type: 'array', | ||
items: { | ||
type: 'string', | ||
}, | ||
description: | ||
'The list of issues that might be wrong with the application', | ||
example: ['feature1', 'feature2'], | ||
}, | ||
}, | ||
components: {}, | ||
} as const; | ||
|
||
export type ApplicationOverviewIssuesSchema = FromSchema< | ||
typeof applicationOverviewIssuesSchema | ||
>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters