scrapinghub / spidermon

Scrapy Extension for monitoring spiders execution.
https://spidermon.readthedocs.io
BSD 3-Clause "New" or "Revised" License
524 stars 94 forks source link

Add support for nested fields in SPIDERMON_VALIDATION_ERRORS_FIELD #417

Closed VMRuiz closed 10 months ago

VMRuiz commented 10 months ago

Allows to use a nested field as validation field. Nested fields are supported by using . separator:

# settings.py
SPIDERMON_VALIDATION_ERRORS_FIELD = "top_level.second_level._validation"
codecov[bot] commented 10 months ago

Codecov Report

Patch coverage: 92.59% and project coverage change: +0.09% :tada:

Comparison is base (ea21cee) 79.05% compared to head (4b5a4bf) 79.14%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #417 +/- ## ========================================== + Coverage 79.05% 79.14% +0.09% ========================================== Files 73 74 +1 Lines 3151 3175 +24 Branches 528 530 +2 ========================================== + Hits 2491 2513 +22 - Misses 590 591 +1 - Partials 70 71 +1 ``` | [Files Changed](https://app.codecov.io/gh/scrapinghub/spidermon/pull/417?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scrapinghub) | Coverage Δ | | |---|---|---| | [spidermon/contrib/utils/attributes.py](https://app.codecov.io/gh/scrapinghub/spidermon/pull/417?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scrapinghub#diff-c3BpZGVybW9uL2NvbnRyaWIvdXRpbHMvYXR0cmlidXRlcy5weQ==) | `90.47% <90.47%> (ø)` | | | [spidermon/contrib/scrapy/pipelines.py](https://app.codecov.io/gh/scrapinghub/spidermon/pull/417?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scrapinghub#diff-c3BpZGVybW9uL2NvbnRyaWIvc2NyYXB5L3BpcGVsaW5lcy5weQ==) | `97.80% <100.00%> (+0.07%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.