drafter
drafter copied to clipboard
nullable attaribute is not implemented for anything else then ObjectElement properties
Nullable does not work for following use cases
# Data Structures
# ArrayWithNullable (array)
- m (nullable)
# NullableString (string, nullable)
This is fixed by #201
This is not fixed. #201 implements nullable
just for properties (MemeberElement).
Other kinds of elements are still not implemented.
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.