Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add appendix "Informative references" to published spec documents #3740

Closed
ralfhandl opened this issue Apr 24, 2024 · 8 comments · Fixed by #3978
Closed

Add appendix "Informative references" to published spec documents #3740

ralfhandl opened this issue Apr 24, 2024 · 8 comments · Fixed by #3978
Assignees
Milestone

Comments

@ralfhandl
Copy link
Contributor

ralfhandl commented Apr 24, 2024

Check existing non-RFC links whether they are normative or informative, for example links to the YAML specification, or links to the JSON Schema specifications.

Add appendix "Informative references" for selected external links that we deem non-normative and worth mentioning.

See IESG Statement: Normative and Informative References

Candidates (default: normative)

  • ABNF
  • CommonMark
  • HTML 4.01
  • IANA registries
  • JSON Schema
  • JSON Schema Validation
  • OpenAPI learn - informative
  • OpenAPI registries - normative as it is a defined extension point
  • OpenID Connect Core
  • OpenID Connect Discovery
  • SPDX
  • WhatWG URL
  • XML Namespaces
  • YAML

Preview: https://ralfhandl.github.io/OpenAPI-Specification/oas/latest.html#informative-references

@handrews
Copy link
Member

For those wondering why this is in "Automation & Infrastructure", the "Normative References" appendix seems to be added by the HTML generation script- it is not present in our (allegedly normative) Markdown document. Which strikes me as odd- are not normative references a normative part of the spec?

@ralfhandl
Copy link
Contributor Author

Just noted this inconsistency:

image

The Markdown spec source already has an "Appendix A" with the version history, which is rendered in HTML as chapter 5, and the normative references are added as second Appendix A.

@Bellangelo
Copy link
Member

Bellangelo commented May 6, 2024

The References section is being done by the Respec and it happens client-side. I have validated by checking the md2html script, which doesn't handle the references, and by checking the source code of the website. If you check it, you will see that this section is missing.

You can check the documentation of Respec here: https://respec.org/docs/#:~:text=ReSpec%20uses%20the%20context%20of,reference%20is%20treated%20as%20normative.

In the md2html that tries to fix some links. Maybe we could use the same functionality.

@handrews
Copy link
Member

ReSpec has syntax for informative references. We don't consistently use its syntax for references, and we possibly should. That might be more predictable than relying on inferences and heuristics.

@lornajane
Copy link
Contributor

Discussion concludes that the OpenAPI Learn is the only informative link from the collection

@karenetheridge
Copy link
Member

I think we might to also add the RFC describing URIs (3986?) because although "format": "uri" is managed by JSON Schema, we do also have URI references (via $ref) in OpenAPI itself. Although, this could be considered covered by "an openapi schema must be valid according to the JSON Schema specification here".

@ralfhandl
Copy link
Contributor Author

we might to also add the RFC describing URIs (3986?)

That is already listed in the Normative References: https://spec.openapis.org/oas/latest.html#bib-rfc3986

@karenetheridge: anything else to do here?

@karenetheridge
Copy link
Member

Yes, sorry, I called it out because I didn't see it in the candidates list at the top of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment