diff --git a/src/schema/validators/common.ts b/src/schema/validators/common.ts index 6a90624df..28c395177 100644 --- a/src/schema/validators/common.ts +++ b/src/schema/validators/common.ts @@ -495,31 +495,38 @@ export const MediaProps = { }; export const YMapMarkerLabel = { + type: 'object', required: [], - iconCaption: { - type: 'string', - }, - iconContent: { - type: 'string', - }, - iconColor: { - type: 'string', - }, - preset: { - type: 'string', + properties: { + iconCaption: { + type: 'string', + }, + iconContent: { + type: 'string', + }, + iconColor: { + type: 'string', + }, + preset: { + type: 'string', + }, }, }; export const YMapMarker = { + type: 'object', + additionalProperties: false, required: [], - coordinate: { - type: 'array', - items: {type: 'number'}, - }, - address: { - type: 'string', + properties: { + coordinate: { + type: 'array', + items: {type: 'number'}, + }, + address: { + type: 'string', + }, + label: YMapMarkerLabel, }, - label: YMapMarkerLabel, }; export const MapProps = {