question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[json] create links for values of format `uri-reference`

See original GitHub issue

When authoring json it’d be great to have a richer experience when referencing other files, without having the overhead of defining a file:// URI whenever this is required (see example below). image

I would expect this behaviour by standard when the schema is defining the values as file-references, this is also related to my more pertinent issue in the vscode-yaml repository concerning the handling of k8s kustomize resources (vscode-yaml#559)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aeschlicommented, Sep 14, 2021

format: uri-reference is used for validation as seen here https://github.com/microsoft/vscode-json-languageservice/blob/main/src/parser/jsonParser.ts#L661

but not for link detection

0reactions
siegenthalerrogercommented, Sep 13, 2021

Hi, sorry for the delay

If I understood you correctly, it is true that vscode currently doesn’t use the format: uri-reference even if it is defined in the schema of a file right?

That would explain the issue in the vscode-yaml plugin aswell: https://github.com/redhat-developer/vscode-yaml/issues/559#issuecomment-909560115

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linking in JSON
JSON -LD is a JSON format with a Linked Data (nee: Semantic Web) twist. ... Linking to more than one URI of a...
Read more >
A Vocabulary for Hypermedia Annotation of JSON
1. anchor. This property sets the context URI of the link. The value of the property is a URI Template, and the resulting...
Read more >
draft-handrews-json-schema-hyperschema-00
The link description format (Section 6) can be used without JSON Schema, ... The value of the instance property MUST be resolved as...
Read more >
Linkset: Media Types and a Link Relation Type for Link Sets
One format is based on JSON, and the other is aligned with the format for ... If present, this value MUST be a...
Read more >
JSON:API — Latest Specification (v1.1)
All document members, query parameters, and processing rules defined by ... If present, a related resource link MUST reference a valid URL, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found