Open rdgreen opened 7 years ago
Running aglio on this file produces a JSON schema for GET /notes like this:
{ "type": "array", "items": { "enum": [ null, null ] }, "$schema": "http://json-schema.org/draft-04/schema#" }
Note the two nulls. enum in JSON schema can't accept subschemas, so oneOf should be generated instead, and the nulls should be replaced with the actual JSON subschemas.
enum
oneOf
Running aglio on this file produces a JSON schema for GET /notes like this:
Note the two nulls.
enum
in JSON schema can't accept subschemas, sooneOf
should be generated instead, and the nulls should be replaced with the actual JSON subschemas.