You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It didn't seem possible to enforce validation on a subelement in the previous API version, but it had to be written at root level. The document in the sample request above includes this field
In any case, validation shouldn't be enforced on queries targeting a Mixed field, as that could contain anything. This is particularly applicable to dates that are stored as Mongo dates, for example
Expected behavior
Any query targeting a Mixed field to be passed to the database
Actual behavior
Queries including a valid path are stripped
For example
is passed to Mongo as
Note that
editor.editor_name
is not presentSteps to reproduce the problem
It seems that API queries are validated against the schema, and if they include an invalid reference they are stripped. However
editor
in this case is Mixed, and contains other subdocuments, which are individually validated in the schemahttps://github.com/dadiplus/bauer-lifestyle-serama/blob/dev/workspace/collections/1.0/articles/collection.celebrity.json
It didn't seem possible to enforce validation on a subelement in the previous API version, but it had to be written at root level. The document in the sample request above includes this field
In any case, validation shouldn't be enforced on queries targeting a Mixed field, as that could contain anything. This is particularly applicable to dates that are stored as Mongo dates, for example
(this is actually the origin of this issue, as queries targeting the publicationDate.sec timestamp fail in Bauer Lifestyle)
Package details
1.3.0
The text was updated successfully, but these errors were encountered: