{
  "$anchor": "OuterNamed",
  "$defs": {
    "Inner": {
      "$anchor": "Inner",
      "additionalProperties": false,
      "properties": {
        "Foo": {
          "type": "string"
        }
      },
      "required": [
        "Foo"
      ],
      "type": "object"
    }
  },
  "$id": "https://github.com/invopop/jsonschema/outer-named",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "inner": {
      "$ref": "#/$defs/Inner"
    },
    "text": {
      "type": "string"
    }
  },
  "required": [
    "inner"
  ],
  "type": "object"
}