Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New tagged union validation errors are basically unreadable #45

Open
object-Object opened this issue Dec 16, 2023 · 0 comments
Open

New tagged union validation errors are basically unreadable #45

object-Object opened this issue Dec 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@object-Object
Copy link
Member

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]
@object-Object object-Object added the bug Something isn't working label Dec 16, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in hexdoc Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant