New tagged union validation errors are basically unreadable
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
The issue includes a long Pydantic validation traceback for crafting pages and recipes, but does not name source files or tests. Start by locating the tagged-union validation error handling and its tests, then reproduce the reported failure. Done means the validation errors are substantially more readable without losing useful detail.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
pydantic_core._pydantic_core.ValidationError: 4 validation errors for Entry
pages.0.Page
Failed to match tagged union <class 'hexdoc.patchouli.page.abstract_pages.Page'>: No match found
Tag: type=patchouli:crafting
Types: <class 'hexdoc.patchouli.page.pages.CraftingPage'>
Data: {'type': 'patchouli:crafting', 'recipe': 'hexgloop:slate_chest', 'text': 'hexgloop.page.chests.normal', '__resolved': True} [type=TaggedUnionMatchErrorGroup, input_value={'type': 'patchouli:craft...oop.page.chests.normal'}, input_type=dict]
pages.0.Page.CraftingPage
Failed to match tagged union: 2 validation errors for CraftingPage
recipe.CraftingRecipe
Failed to match tagged union <class 'hexdoc.minecraft.recipe.abstract_recipes.CraftingRecipe'>: No match found
Tag: type=minecraft:crafting_shaped
Types: <class 'hexdoc.minecraft.recipe.recipes.CraftingShapedRecipe'>
Data: {'type': 'minecraft:crafting_shaped', 'pattern': [' S ', 'SCS', ' S '], 'key': {'S': {'item': 'hexcasting:slate', '__resolved': True}, 'C': {'item': 'minecraft:chest'}}, 'result': {'item': 'hexgloop:slate_chest'}, 'id': hexgloop:slate_chest, 'resource_dir': PathResourceDir(external=True, reexport=False, path=WindowsPath('C:/Users/.../Git/HexBug/venv/Lib/site-packages/hexdoc_hexgloop/_export/generated'), required=True), '__resolved': True} [type=TaggedUnionMatchErrorGroup, input_value={'type': 'minecraft:craft...rated'), required=True)}, input_type=dict]
recipe.CraftingRecipe.CraftingShapedRecipe
Failed to match tagged union: 3 validation errors for CraftingShapedRecipe
key.C.0.ItemIngredient
Failed to match tagged union <class 'hexdoc.minecraft.recipe.ingredients.ItemIngredient'>: No match found
Tag: type=NoValue
Types: <class 'hexdoc.minecraft.recipe.ingredients.MinecraftItemTagIngredient'>, <class 'hexdoc.minecraft.recipe.ingredients.MinecraftItemIdIngredient'>
Data: {'item': 'minecraft:chest', '__resolved': True} [type=TaggedUnionMatchErrorGroup, input_value={'item': 'minecraft:chest'}, input_type=dict]
key.C.0.ItemIngredient.MinecraftItemTagIngredient
Failed to match tagged union: 2 validation errors for MinecraftItemTagIngredient
tag
Field required [type=missing, input_value={'item': 'minecraft:chest'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/missing
item
Extra inputs are not permitted [type=extra_forbidden, input_value='minecraft:chest', input_type=str]
For further information visit https://errors.pydantic.dev/2.5/v/extra_forbidden [type=TaggedUnionMatchError, input_value={'item': 'minecraft:chest'}, input_type=dict]
key.C.0.ItemIngredient.MinecraftItemIdIngredient
Failed to match tagged union: 4 validation errors for MinecraftItemIdIngredient
item.texture.function-wrap[_wrap_root_load_from_id()]
Value error, No PNGTexture for minecraft:chest [type=value_error, input_value=minecraft:chest, input_type=ResourceLocation]
For further information visit https://errors.pydantic.dev/2.5/v/value_error
item.texture.function-wrap[_wrap_root_load_from_id()]
Value error, No AnimatedTexture for minecraft:chest [type=value_error, input_value=minecraft:chest, input_type=ResourceLocation]
For further information visit https://errors.pydantic.dev/2.5/v/value_error
item.texture.function-wrap[_wrap_root_load_from_id()]
Value error, No SingleItemTexture for minecraft:chest [type=value_error, input_value=minecraft:chest, input_type=ResourceLocation]
For further information visit https://errors.pydantic.dev/2.5/v/value_error
item.texture.function-wrap[_wrap_root_load_from_id()]
Value error, No MultiItemTexture for minecraft:chest [type=value_error, input_value=minecraft:chest, input_type=ResourceLocation]
For further information visit https://errors.pydantic.dev/2.5/v/value_error [type=TaggedUnionMatchError, input_value={'item': 'minecraft:chest'}, input_type=dict] [type=TaggedUnionMatchError, input_value={'type': 'minecraft:craft...rated'), required=True)}, input_type=dict] [type=TaggedUnionMatchError, input_value={'type': 'patchouli:craft...oop.page.chests.normal'}, input_type=dict]
pages.1.Page
Failed to match tagged union <class 'hexdoc.patchouli.page.abstract_pages.Page'>: No match found
Tag: type=patchouli:crafting
Types: <class 'hexdoc.patchouli.page.pages.CraftingPage'>
Data: {'type': 'patchouli:crafting', 'recipe': 'hexgloop:gloopy_slate_chest', 'text': 'hexgloop.page.chests.gloopy', '__resolved': True} [type=TaggedUnionMatchErrorGroup, input_value={'type': 'patchouli:craft...oop.page.chests.gloopy'}, input_type=dict]
pages.1.Page.CraftingPage
Failed to match tagged union: 2 validation errors for CraftingPage
recipe.CraftingRecipe
Failed to match tagged union <class 'hexdoc.minecraft.recipe.abstract_recipes.CraftingRecipe'>: No match found
Tag: type=minecraft:crafting_shaped
Types: <class 'hexdoc.minecraft.recipe.recipes.CraftingShapedRecipe'>
Data: {'type': 'minecraft:crafting_shaped', 'pattern': [' S ', 'SCS', ' G '], 'key': {'S': {'item': 'hexcasting:slate', '__resolved': True}, 'C': {'item': 'minecraft:chest'}, 'G': {'item': 'hexgloop:gloop', '__resolved': True}}, 'result': {'item': 'hexgloop:gloopy_slate_chest'}, 'id': hexgloop:gloopy_slate_chest, 'resource_dir': PathResourceDir(external=True, reexport=False, path=WindowsPath('C:/Users/.../Git/HexBug/venv/Lib/site-packages/hexdoc_hexgloop/_export/generated'), required=True), '__resolved': True} [type=TaggedUnionMatchErrorGroup, input_value={'type': 'minecraft:craft...rated'), required=True)}, input_type=dict]
recipe.CraftingRecipe.CraftingShapedRecipe
Failed to match tagged union: 3 validation errors for CraftingShapedRecipe
key.C.0.ItemIngredient
Failed to match tagged union <class 'hexdoc.minecraft.recipe.ingredients.ItemIngredient'>: No match found
Tag: type=NoValue
Types: <class 'hexdoc.minecraft.recipe.ingredients.MinecraftItemTagIngredient'>, <class 'hexdoc.minecraft.recipe.ingredients.MinecraftItemIdIngredient'>
Data: {'item': 'minecraft:chest', '__resolved': True} [type=TaggedUnionMatchErrorGroup, input_value={'item': 'minecraft:chest'}, input_type=dict]
key.C.0.ItemIngredient.MinecraftItemTagIngredient
Failed to match tagged union: 2 validation errors for MinecraftItemTagIngredient
tag
Field required [type=missing, input_value={'item': 'minecraft:chest'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/missing
item
Extra inputs are not permitted [type=extra_forbidden, input_value='minecraft:chest', input_type=str]
For further information visit https://errors.pydantic.dev/2.5/v/extra_forbidden [type=TaggedUnionMatchError, input_value={'item': 'minecraft:chest'}, input_type=dict]
key.C.0.ItemIngredient.MinecraftItemIdIngredient
Failed to match tagged union: 4 validation errors for MinecraftItemIdIngredient
item.texture.function-wrap[_wrap_root_load_from_id()]
Value error, No PNGTexture for minecraft:chest [type=value_error, input_value=minecraft:chest, input_type=ResourceLocation]
For further information visit https://errors.pydantic.dev/2.5/v/value_error
item.texture.function-wrap[_wrap_root_load_from_id()]
Value error, No AnimatedTexture for minecraft:chest [type=value_error, input_value=minecraft:chest, input_type=ResourceLocation]
For further information visit https://errors.pydantic.dev/2.5/v/value_error
item.texture.function-wrap[_wrap_root_load_from_id()]
Value error, No SingleItemTexture for minecraft:chest [type=value_error, input_value=minecraft:chest, input_type=ResourceLocation]
For further information visit https://errors.pydantic.dev/2.5/v/value_error
item.texture.function-wrap[_wrap_root_load_from_id()]
Value error, No MultiItemTexture for minecraft:chest [type=value_error, input_value=minecraft:chest, input_type=ResourceLocation]
For further information visit https://errors.pydantic.dev/2.5/v/value_error [type=TaggedUnionMatchError, input_value={'item': 'minecraft:chest'}, input_type=dict] [type=TaggedUnionMatchError, input_value={'type': 'minecraft:craft...rated'), required=True)}, input_type=dict] [type=TaggedUnionMatchError, input_value={'type': 'patchouli:craft...oop.page.chests.gloopy'}, input_type=dict]
- Ngôn ngữ chính
- Python
- Star
- 7
- Fork
- 10
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hexdoc-dev/hexdoc
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
hexdoc-dev/hexdoc#109 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
hexdoc-dev/hexdoc#108 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
hexdoc-dev/hexdoc#90 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 53/100
hexdoc-dev/hexdoc#107 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
hexdoc-dev/hexdoc#106 ·
Tất cả issue của hexdoc-dev/hexdoc
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
zach-blumenfeld/aip#13 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
nathanmarlor/foxess_modbus#1287 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
OpenLakeForge/openlakeforge#498 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue hacktoberfest help wanted python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Exact onnxruntime==1.27.0 core pin makes Pipecat-based apps uninstallable from the dashboardĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
pollen-robotics/reachy_mini#1493 ·
Maintainer thường phản hồi trong vòng 1 ngày