If you return a OneOf using a type parameter the generator creates extension method using the name of the type parameter but these all error as the type doesn't exist.
Quick fix suggestion would be skipping generation if any of the used types are a type parameter.