Skip to content

Commit 80cddb8

Browse files
authored
Merge pull request #4 from VirtusLab-Open-Source/fix/nullable-media-size
fix: nullable media size fields
2 parents a8065e8 + 64ea908 commit 80cddb8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sensinum/astro-strapi-loader",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"description": "Astro loader for Strapi CMS",
55
"keywords": [
66
"astro",

src/utils/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export class StrapiSchemaGenerator {
7575
name: z.string(),
7676
alternativeText: z.string().optional().nullable(),
7777
caption: z.string().optional().nullable(),
78-
width: z.number().optional(),
79-
height: z.number().optional(),
78+
width: z.number().optional().nullable(),
79+
height: z.number().optional().nullable(),
8080
formats: z.any().nullable(),
8181
hash: z.string(),
8282
ext: z.string().optional(),

0 commit comments

Comments
 (0)