In previous versions (pre 1.12), recipes that could use any data/durability of an ingredient (ex: wood sword using any planks) had a durability set to Short.MAX_VALUE. Furnace recipes still have this functionality.
I'm using Bukkit.getServer().recipeIterator() and checking the durability. For shaped/shapeless recipes, they now appear to be set to 0.
I can't find any other way to determine in existing recipes if an ingredient can be of any of the same material type, so if this is not a bug, I'm hoping there can be something added to determine whether ingredients can be of any data/durability.