Nil in enumeration


#1

Hi,

how can I use nil/null as option in an enumeration-type? Something like:

foo:
  enum: ["bla", "blubb", nil]

This does not work. Is this even possible?


#2

Works for me in api-workbench 0.8.46

#%RAML 1.0
title: test
version: v1
baseUri: http://hostname/test/{version}
mediaType: application/json

types:
  foo:
    enum: ["bla", "blubb", nil]

/:
  get:
    responses:
      200:
        body:
          type: foo