question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extend operation on DocumentArray applies change before validation

See original GitHub issue
from 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:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JoanFMcommented, Sep 20, 2022

So let’s do this @samsja , it should be quick

0reactions
JoanFMcommented, Oct 3, 2022

Decided not to pursue. Reasons explained in the PR opened

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found