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

Make Enums Nullable By Default #37

Closed
sigmavirus24 opened this issue Nov 27, 2013 · 2 comments
Closed

Make Enums Nullable By Default #37

sigmavirus24 opened this issue Nov 27, 2013 · 2 comments

Comments

@sigmavirus24
Copy link

If you have a definition similar to this:

grade: &grade
  description: Student's final grade
  type:
    - "null"
    - type: string
      enum: [A, B, C, D, F]

Then it is not actually nullable even though you specify "null" as a type.

@sigmavirus24
Copy link
Author

Also, it should be noted that the following does not work either:

grade: &grade
   description: Student's final grade
   type: string
   enum: [A, B, C, D, F]
   nullable: true

@myronmarston
Copy link
Contributor

I have a fix in #38. I'll try to update Vanguard to this version later today. Thanks for reporting this!

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

2 participants