You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Michael Bolz (JIRA)" <ji...@apache.org> on 2015/10/20 06:33:27 UTC

[jira] [Commented] (OLINGO-803) Support string as underlying type for enums

    [ https://issues.apache.org/jira/browse/OLINGO-803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14964500#comment-14964500 ] 

Michael Bolz commented on OLINGO-803:
-------------------------------------

Hi [~bjnwagner],

The reason is that the [OData specification (10.1 Element edm:EnumType)|http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part3-csdl/odata-v4.0-errata02-os-part3-csdl-complete.html#_Toc406397994] defines:
{quote}
An enumeration type MAY include an UnderlyingType attribute to specify an underlying type whose value MUST be one of Edm.Byte, Edm.SByte, Edm.Int16, Edm.Int32, or Edm.Int64
{quote}

Best Regards,
Michael

> Support string as underlying type for enums
> -------------------------------------------
>
>                 Key: OLINGO-803
>                 URL: https://issues.apache.org/jira/browse/OLINGO-803
>             Project: Olingo
>          Issue Type: Improvement
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.0.0
>            Reporter: Björn Wagner
>
> Why is there currently no support for string values as underlying enum type? The current implementation only supports Byte, SByte, Int16, Int32 and Int64 types. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)