Skip to content

Support EnumTypes that do not specify values#35

Open
tpow wants to merge 1 commit into
tuomur:masterfrom
tpow:enums
Open

Support EnumTypes that do not specify values#35
tpow wants to merge 1 commit into
tuomur:masterfrom
tpow:enums

Conversation

@tpow

@tpow tpow commented Jan 22, 2019

Copy link
Copy Markdown

According to the OData 4 Spec on Enumeration Types the Value attributes can be omitted. In this situation, the first one is considered to have a value of 0, the next is value 1, and so on.

I've added support for omitting the Value attribute, and updated the tests to include a demo EnumType that relies on this.

Tim

@tpow

tpow commented Jan 22, 2019

Copy link
Copy Markdown
Author

This might fix #30.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant