Skip to content

Inherit translation attribute from the InterfaceType to the ObjectTypes that implement the interface #2

@gmiserez

Description

@gmiserez

Currently we need to put the [Translate] Attribute on both the interface and the types that implement it. Ideally we should only have to put it on the interface and it should be inherited by the types that implement it.

    [InterfaceType("Character")]
    public interface ICharacter : ISearchResult
    {
        [UsePaging(typeof(InterfaceType<ICharacter>))]
        IReadOnlyList<int> Friends { get; }
    }

    public class Human : ICharacter
    {
        [TranslateArray<Episode>("Episodes")] // <- this should not be needed
        public IReadOnlyList<Episode> AppearsIn { get; }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    TranslationsThis concerns the Translations PackageenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions