As part of a migration, I see this error for the field inrete:
File "/home/ajung/src/unibo/magazine-plone6/eggs/plone.restapi-8.43.3-py3.11.egg/plone/restapi/deserializer/dxcontent.py", line 60, in __call__
raise BadRequest(errors)
zExceptions.BadRequest: [{'message': 'Schema not provided', 'field': 'inrete', 'error': 'ValidationError'}
with input data like
"inrete": [
{
"link": "http://www.ifla.org/en/events/moving-in-moving-up-and-moving-on-strategies-for-regenerating-the-library-and-information-pro",
"title": "La pagina web dell'evento"
}
],
The inrete field comes from a behavior defined as
class IInRete(Interface):
title = schema.TextLine(
title=_(u"Titolo"),
description=_(u"Titolo del contenuto in rete"),
required=True,
)
link = schema.URI(
title=_(u"Url"),
description=_(u"Inserisci un indirizzo web"),
required=True,
default="http://",
)
class IInReteBehavior(model.Schema):
inrete = schema.List(
title=_(u"In Rete"),
required=False,
value_type=schema.Object(
title=_(u"In rete"),
schema=IInRete,
),
I am not getting the point of this Schema not provided error.
I am using latest Plone 6.0.7.
Any idea?