// This test tests the conversion and ordering of $defs.

-- schema.json --
{
  "$schema": "http://json-schema.org/draft-07/schema#",

  "properties": {
    "value": {},
    "next": { "$ref": "#" }
  }
}

-- out/decode/extract --
@jsonschema(schema="http://json-schema.org/draft-07/schema#")
_schema
_schema:

	null | bool | number | string | [...] | {
		value?: _
		next?:  _schema
		...
	}
