Skip to content

Various minor editorial improvements (3.0.4) - #3861

Merged
lornajane merged 15 commits into
OAI:v3.0.4-devfrom
handrews:editorial-304
Jun 11, 2024
Merged

Various minor editorial improvements (3.0.4)#3861
lornajane merged 15 commits into
OAI:v3.0.4-devfrom
handrews:editorial-304

Conversation

@handrews

@handrewshandrews commented May 27, 2024

Copy link
Copy Markdown
Member

Guide readers to supplemental documentation, examples, related
specificatioins, and extension registries. These sites answer
many questions that otherwise get raised as GitHub issues.
@handrewshandrews added clarification requests to clarify, but not change, part of the spec http Supporting HTTP features and interactions example obj/keywords Issues with the Example Object or exampel(s) keywords metadata tags, info, license, contact, markdown usage, etc. editorial Wording and stylistic issues labels May 27, 2024
@handrewshandrews added this to the v3.0.4 milestone May 27, 2024
@handrews
handrews requested a review from a teamMay 27, 2024 22:25
ralfhandl
ralfhandl previously approved these changes May 28, 2024
Comment threadversions/3.0.4.md Outdated
Co-authored-by: Ralf Handl <ralf.handl@sap.com>
ralfhandl
ralfhandl previously approved these changes Jun 4, 2024

@lornajanelornajane left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really minor nitpicks, I'm happy to re-review and approve after updates

Comment threadversions/3.0.4.md
Comment threadversions/3.0.4.md
Comment threadversions/3.0.4.md Outdated
Comment threadversions/3.0.4.md Outdated
### <a name="richText"></a>Rich Text Formatting
Throughout the specification `description` fields are noted as supporting CommonMark markdown formatting.
Where OpenAPI tooling renders rich text it MUST support, at a minimum, markdown syntax as described by [CommonMark 0.27](https://spec.commonmark.org/0.27/). Tooling MAY choose to ignore some CommonMark features to address security concerns.
Where OpenAPI tooling renders rich text it MUST support, at a minimum, markdown syntax as described by [CommonMark 0.27](https://spec.commonmark.org/0.27/). Tooling MAY choose to implement extensions on top of CommonMark 0.27, and MAY choose to ignore some CommonMark or extension features to address security concerns.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm conflicted about expressly encouraging different tools to support different formats (conflicted because I work for a tools vendor that supports ridiculously good extensions that breaks other tooling if used!). The extensions were sort of already implied with "at a minimum", but this is a step further and I'm not sure it's helpful to users if they are expecting their API descriptions to be interoperable.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lornajane I only want to clarify the original intention. I don't at all strongly about this, it's just one more issue to resolve. If you and the TSC want to resolve the issue (#1867) without action I'm happy to take this commit out.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lornajane I updated this to warn about interoperability problems and offer guidance to description authors to consider the impact on users of tools that don't support extensions. Please let me know if you think this is a good balance. I'm also still happy to strike this change if it seems problematic.

Co-authored-by: Lorna Jane Mitchell <github@lornajane.net>
handrewsand others added 3 commits June 4, 2024 13:28
Co-authored-by: Lorna Jane Mitchell <github@lornajane.net>
Co-authored-by: Lorna Jane Mitchell <github@lornajane.net>
@handrews

Copy link
Copy Markdown
MemberAuthor

Also clarified #/info/version per #3872

@ralfhandl
ralfhandl self-requested a review June 6, 2024 12:09
When we mention YAML's "Failsafe schema" we give it a lower-case
"schem", as the YAML documentatio does. We also prefix it with
"YAML".
However, we capitalize "Schema" in "JSON Schema ruleset",
which (given how much JSON Schema is used in the OAS) is a jarring
overlap with "JSON Schema".
This change aligns "YAML JSON schema ruleset" with
"YAML Failsafe ruleset" and explicitly calls out that it is
unrelated to JSON Schema.
@handrews

Copy link
Copy Markdown
MemberAuthor

I've added one more clarification that's been bugging me for years since this is stil open:


Clarify confusing use of YAML "JSON Schema"

When we mention YAML's "Failsafe schema" we give it a lower-case"schema", as the YAML documentatio does. We also prefix it with "YAML".

However, we capitalize "Schema" in "JSON Schema ruleset", which (given how much JSON Schema is used in the OAS) is a jarring overlap with "JSON Schema".

This change aligns "YAML JSON schema ruleset" with "YAML Failsafe ruleset" and explicitly calls out that it is unrelated to JSON Schema.

@ralfhandl
ralfhandl requested a review from lornajaneJune 10, 2024 12:02

@lornajanelornajane left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updated wording strikes a decent balance IMO, thanks @handrews !

@lornajane
lornajane merged commit f8d4abb into OAI:v3.0.4-devJun 11, 2024
@handrews
handrews deleted the editorial-304 branch June 11, 2024 17:45
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clarificationrequests to clarify, but not change, part of the speceditorialWording and stylistic issuesexample obj/keywordsIssues with the Example Object or exampel(s) keywordshttpSupporting HTTP features and interactionsmetadatatags, info, license, contact, markdown usage, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@handrews@lornajane@ralfhandl