我想知道是否有办法限制对象类型设置的长度。我有以下设置:
custom_header_links:
type: objects
default: []
schema:
name: "link"
identifier: text
properties:
text:
type: string
required: true
validations:
min_length: 1
max_length: 100
title:
type: string
validations:
min_length: 1
max_length: 1000
url:
type: string
required: true
validations:
min_length: 1
max_length: 2048
url: true
target:
type: enum
choices:
- blank
- self
我可以通过添加长度来限制链接的数量吗?
提前感谢。