Extend operation on DocumentArray applies change before validation
See original GitHub issuefrom docarray import Document
d = Document(id='Meow')
d.chunks.extend([1, 2, 3])
d.summary()
Expected Behavior Throws an error and keeps the Document intact.
Current Behavior Throws an error but modifies the Document.
Reproduction of the bug in colab environment: https://colab.research.google.com/drive/1n0olEkZ9iKSIvtq1kXbLv5hv59MsSv1L?usp=sharing
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Modify input before validation on Laravel 5.1 - Stack Overflow
I only figured out one way to achieve what you want. The main point is, that it has no effect for the Validator...
Read more >Manipulating request data before performing validation in ...
Let's start with an example form request for storing a blog post. Take notice of the rules that are applied the inputs. <?php...
Read more >Understanding JSON Schema
JSON Schema is a powerful tool for validating the structure of JSON data. However, learning to use it by reading its.
Read more >Adding Document Validation Rules Using MongoDB ...
This makes it easy to create and modify rules that ensure that all documents written to a collection contain the data you expect...
Read more >Debezium connector for PostgreSQL
The connector performs a database snapshot and stops before streaming any change event records. If the connector had started but did not complete...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So let’s do this @samsja , it should be quick
Decided not to pursue. Reasons explained in the PR opened