Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option/Nullable type for not required properties #93

Closed
sergey-tihon opened this issue Nov 23, 2017 · 1 comment
Closed

Option/Nullable type for not required properties #93

sergey-tihon opened this issue Nov 23, 2017 · 1 comment
Milestone

Comments

@sergey-tihon
Copy link
Member

sergey-tihon commented Nov 23, 2017

Type provider should provide optional types for the not required properties.

Initially proposed by @yodiz here #91 (comment) , user votes are here https://twitter.com/sergey_tihon/status/933323948791607297

Option (default behavior)

{
  PetId : int
  PrimaryCatergory : PetCategory
  SecondayCategory : PetCategory option 
}

Nullable

Nullable should play nicely with F# as well, but primary rationale to support it is C# interop

{
  PetId : int
  PrimaryCatergory : PetCategory
  SecondayCategory : Nullable<PetCategory> 
}
@sergey-tihon
Copy link
Member Author

This feature is implemented in v0.10.0-alpha2

@sergey-tihon sergey-tihon added this to the v1.0 milestone Mar 2, 2019
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

No branches or pull requests

1 participant