ChilliCream / graphql-platform

Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
https://chillicream.com
MIT License
5.28k stars 748 forks source link

generate Enum value description attribute based on GraphQL schema [StrawberryShake] #2473

Closed ma3yta closed 3 years ago

ma3yta commented 4 years ago

expected result

public enum EISAccountType
{
    [Description("Adjustments Equity")]
    AdjustmentsEquity,
    [Description("Adjustments 1")]
    Adjustments,
    ExcessCash
}

schema

enum EISAccountType {
  "Adjustments Equity"
  ADJUSTMENTS_EQUITY
  "Adjustments 1"
  ADJUSTMENTS
  EXCESS_CASH
}

michaelstaib commented 3 years ago

We will not generate the description attribute from the server. We will however generate xml documentation.