New tagged union validation errors are basically unreadable
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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]
- Lenguaje dominante
- Python
- Estrellas
- 7
- Forks
- 10
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de hexdoc-dev/hexdoc
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
hexdoc-dev/hexdoc#109 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
hexdoc-dev/hexdoc#108 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
hexdoc-dev/hexdoc#90 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 53/100
hexdoc-dev/hexdoc#107 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
hexdoc-dev/hexdoc#106 ·
Todos los issues de hexdoc-dev/hexdoc
Issues similares
-
comp/cli P3 type/security
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
NousResearch/hermes-agent#141420 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
vendor-pitch
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
Los mantenedores suelen responder en 1 día
-
bug llm p2
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
amd/gaia#5379 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
New tool: ZIPZAX Python Notebook StudioPosiblemente ocupada @github-actions la tomó hoy. Abiertosubmission triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
kausalflow/tools#226 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100