JRI from an AsyncAPI perspective
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- json
- Domain
- documentation
Research direction
Start with draft-handrews-jri.md, especially the sections on extending JRI, standalone implementations, avoiding behavioral overlap, fragments and secondary resources, and serving. Compare the stated JRI behavior with the AsyncAPI perspective and document a resolved position on the four questions; the issue is done when the specification guidance is clear and agreed.
Written by the indexing model from the issue text.
Description
@handrews do correct me if I am wrong in any of the cases 😆
- Should always produce a valid JSON document (resolving referenced resource should always be compatible with JSON)
Defined by https://github.com/json-schema-org/referencing/blob/main/draft-handrews-jri.md#general-syntax
- Should define the behavior for referencing non-JSON resources in a JSON document (this can be as simple as resolving the content into a string value)
- Should define the behavior for referencing JSON data
Same as JRef, this is decided per media type, and explicitly allow the context specification to determine the behavior, any of the above use-cases seem to be covered.
- Should define the behavior for referencing JSON data that also have reference behavior, and how they interconnect / or not (say two standards both use
$refthe new standard should define a clear separation between the two and how referencing tools should interpret it)
https://github.com/json-schema-org/referencing/blob/main/draft-handrews-jri.md#extending-jri-extending
https://github.com/json-schema-org/referencing/blob/main/draft-handrews-jri.md#standalone-jri-implementations
https://github.com/json-schema-org/referencing/blob/main/draft-handrews-jri.md#avoiding-behavioral-overlap
Everything is context aware, and is dynamic based on media type, i.e. resolving references in a JSON Schema context follows different rules for $ref then in the context specification of JRI.
- Should define the behavior of nested schemas within the same file (so there is no difference between what the spec allows and what tooling enables)
https://github.com/json-schema-org/referencing/blob/main/draft-handrews-jri.md#fragments-and-secondary-resources defines the behavior for fragments and secondary resources.
https://github.com/json-schema-org/referencing/blob/main/draft-handrews-jri.md#discovering-caching-and-serving-resources-serving defines the behavior for caching and bundling.
Context specifications take priority, which clears up the confusion.
- Dominant language
- Makefile
- Stars
- 9
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from json-schema-org/referencing
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
json-schema-org/referencing#16 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
json-schema-org/referencing#15 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
json-schema-org/referencing#14 · 9 comments ·
-
jri security
json-schema-org/referencing#13 · 1 assignee ·
-
jri
Difficulty 5/5 Over a week Newbie friendliness 20/100
All issues in json-schema-org/referencing
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bancolombia/sentinel#22 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
redhat-developer/rhdh-plugins#4887 · 2 comments ·