Skip to content

Commit 8db1923

Browse files
committed
fix: fix map block scheme
1 parent 13874f7 commit 8db1923

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

src/schema/validators/common.ts

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -495,31 +495,38 @@ export const MediaProps = {
495495
};
496496

497497
export const YMapMarkerLabel = {
498+
type: 'object',
498499
required: [],
499-
iconCaption: {
500-
type: 'string',
501-
},
502-
iconContent: {
503-
type: 'string',
504-
},
505-
iconColor: {
506-
type: 'string',
507-
},
508-
preset: {
509-
type: 'string',
500+
properties: {
501+
iconCaption: {
502+
type: 'string',
503+
},
504+
iconContent: {
505+
type: 'string',
506+
},
507+
iconColor: {
508+
type: 'string',
509+
},
510+
preset: {
511+
type: 'string',
512+
},
510513
},
511514
};
512515

513516
export const YMapMarker = {
517+
type: 'object',
518+
additionalProperties: false,
514519
required: [],
515-
coordinate: {
516-
type: 'array',
517-
items: {type: 'number'},
518-
},
519-
address: {
520-
type: 'string',
520+
properties: {
521+
coordinate: {
522+
type: 'array',
523+
items: {type: 'number'},
524+
},
525+
address: {
526+
type: 'string',
527+
},
528+
label: YMapMarkerLabel,
521529
},
522-
label: YMapMarkerLabel,
523530
};
524531

525532
export const MapProps = {

0 commit comments

Comments
 (0)