Skip to content

"$id" and "$ref": "#" in the same schema #944

@ryangalamb

Description

@ryangalamb

It might be helpful to add a note in the spec, allowing implementations to raise an error when one schema includes both an "$id" and a "$ref": "#". If I understand correctly, this combination will always lead to infinite recursion.

Aside from being helpful to implementers, I think this would be helpful in communicating how "$id" affects the base URI. It could also help illustrate the usefulness of $recursiveRef and $recursiveAnchor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions