{
    "$schema": "https://json-schema.org/draft/next/schema",
    "$id": "http://localhost:1234/draft-next/ref-and-defs.json",
    "$defs": {
        "inner": {
            "properties": {
                "bar": { "type": "string" }
            }
        }
    },
    "$ref": "#/$defs/inner"
}
