Skip to content
Snippets Groups Projects
Commit 381e2b06 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

project might have a license

parent 3d6b013a
No related branches found
No related tags found
2 merge requests!231Development,!228Resolve "License information not displayed in the left panel (new interface)"
import { z } from 'zod';
export const licenseSchema = z.object({
id: z.number().int().positive(),
name: z.string(),
content: z.string(),
});
import { z } from 'zod'; import { z } from 'zod';
import { licenseSchema } from '@/models/licenseSchema';
import { disease } from './disease'; import { disease } from './disease';
import { organism } from './organism'; import { organism } from './organism';
import { overviewImageView } from './overviewImageView'; import { overviewImageView } from './overviewImageView';
...@@ -23,4 +24,7 @@ export const projectSchema = z.object({ ...@@ -23,4 +24,7 @@ export const projectSchema = z.object({
creationDate: z.string(), creationDate: z.string(),
overviewImageViews: z.array(overviewImageView), overviewImageViews: z.array(overviewImageView),
topOverviewImage: overviewImageView.nullable(), topOverviewImage: overviewImageView.nullable(),
license: z.optional(licenseSchema),
customLicenseName: z.string().nullable(),
customLicenseUrl: z.string().nullable(),
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment