drafter icon indicating copy to clipboard operation
drafter copied to clipboard

nullable attaribute is not implemented for anything else then ObjectElement properties

Open klokane opened this issue 9 years ago • 3 comments

Nullable does not work for following use cases

# Data Structures

# ArrayWithNullable (array)
- m (nullable)

# NullableString (string, nullable)

klokane avatar Dec 21 '15 16:12 klokane

This is fixed by #201

pksunkara avatar Dec 28 '15 13:12 pksunkara

This is not fixed. #201 implements nullable just for properties (MemeberElement). Other kinds of elements are still not implemented.

klokane avatar Dec 28 '15 14:12 klokane

I can confirm string is now implemented:

+ Response 200 (application/json)
    + Attributes (string, nullable)

Message Body Schema:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "anyOf": [
    {
      "type": "null"
    },
    {
      "type": "string"
    }
  ]
}

Message Body:

null

Array doesn't appear to be implemented.

kylef avatar Jun 07 '19 08:06 kylef