Skip to content

Conversation

@BmnQuentin
Copy link

Integrated pydantic logic to IntegerField.
All tests pass (apart from 5 console ones not related to modifications)
Fixed a few issued:

  • examples should enable Any type, not only strings
  • descriptor was broken during the merge of two kinds

@BmnQuentin
Copy link
Author

TODO: if the global idea is ok, move each class from field_descriptor in its own file (eg boolean.py)

Copy link
Collaborator

@pierrecamilleri pierrecamilleri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(apart from 5 console ones not related to modifications)

Were they already failing before ? Even on master branch ?
(normaly CI was passing not so long ago, however I have not investigated CI breaking in #1758 yet)

## Field._descriptor properties
descr = {**descr, **super().to_descriptor(validate=validate)}
## Merge descriptor_descr into base_descr to preserve base order
descr = {**base_descr, **descriptor_descr}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If changing the order, the above comment needs to be updated ("_descriptor" has priority)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As i understand it, it is already the correct way?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean this comment :

Temporarily, Field properties have priority over
Field._descriptor properties

It seems the opposite to me (descriptor_descr overwrites / has priority over base_descr)

@BmnQuentin
Copy link
Author

BmnQuentin commented Dec 10, 2025

Changes in #1751 already break console tests. Will try and fix that in another PR

EDIT: fixed in #1752, needs rebase

@pierrecamilleri pierrecamilleri merged commit 02ce1af into frictionlessdata:refactor/field-no-metadata Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants