Skip to content

Describe intent of 9.2.1 Internal references  #318

Closed
@reece

Description

@reece

Section 9.2.1 describes Internal references. It is unclear to me why these are useful. Please consider a one-sentence statement about utility. (Descriptions of utility and intent would be generally helpful throughout.)

9.2.1 says:

When an implementation then looks inside the <#/items> schema, it encounters the <#item> reference, and resolves this to http://example.net/root.json#item which is understood as the schema defined elsewhere in the same document.

If I read this correctly, internal references permit schemas to define a JSON pointer fragment to themselves rather than be accessed by JSON Pointer. For this example, is "$ref": "#item" equivalent to "$ref": "#/definitions/single"? If so, why is this useful?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions