Skip to content

Commit b4350f9

Browse files
committed
Fix: #119. Mention interoperability considerations in registration.
1 parent 6794d28 commit b4350f9

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

draft-ietf-httpapi-rest-api-mediatypes.md

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ Encoding considerations:
144144
: Same as "application/json"
145145

146146
Security considerations:
147-
: See {{security-considerations}} of this document, "application/json" and [OAS]
147+
: See {{sec}} of this document, "application/json" and [OAS]
148148

149149
Interoperability considerations:
150-
: See "application/json" and [OAS]
150+
: See {{int}} of this document, "application/json" and [OAS]
151151

152152
Published specification:
153153
: this document, [OAS]
@@ -204,10 +204,10 @@ Encoding considerations:
204204
: Same as "+yaml" Structured Syntax Suffix
205205

206206
Security considerations:
207-
: See {{security-considerations}} of this document, "+yaml" Structured Syntax Suffix and [OAS]
207+
: See {{sec}} of this document, "+yaml" Structured Syntax Suffix and [OAS]
208208

209209
Interoperability considerations:
210-
: See "+yaml" Structured Syntax Suffix and [OAS]
210+
: See {{int}} of this document, "+yaml" Structured Syntax Suffix and [OAS]
211211

212212
Published specification:
213213
: [OAS]
@@ -245,27 +245,38 @@ Change controller:
245245
: IETF
246246

247247

248-
# Interoperability Considerations
248+
# Interoperability Considerations {#int}
249249

250250
Interoperability requirements for media type
251251
registrations are discussed in Section 4.6 of {{!MEDIATYPE=RFC6838}}
252252
and in the Interoperability Considerations of the "+yaml" Structured Syntax Suffix.
253253

254-
# Security Considerations
254+
# Security Considerations {#sec}
255255

256256
Security requirements for media type
257257
registrations are discussed in Section 4.6 of {{!MEDIATYPE=RFC6838}}.
258258
and in the Security Considerations of the "+yaml" Structured Syntax Suffix.
259259

260260
## General Considerations
261261

262-
OpenAPI documents are processed by a wide variety of tooling for numerous different purposes, such as client code generation, documentation generation, server side routing, and API testing. OpenAPI document authors must consider the risks of the scenarios where the OpenAPI document may be used.
262+
OpenAPI documents are processed by a wide variety of tooling for numerous different purposes,
263+
such as client code generation, documentation generation, server side routing, and API testing.
264+
OpenAPI document authors must consider the risks of the scenarios where the OpenAPI document may be used.
263265

264-
An OpenAPI document describes the security schemes used to protect the resources it defines. The security schemes available offer varying degrees of protection. Factors such as the sensitivity of the data and the potential impact of a security breach should guide the selection of security schemes for the API resources. Some security schemes, such as basic auth and OAuth Implicit flow, are supported for compatibility with existing APIs. However, their inclusion in OpenAPI does not constitute an endorsement of their use, particularly for highly sensitive data or operations.
266+
An OpenAPI document describes the security schemes used to protect the resources it defines.
267+
The security schemes available offer varying degrees of protection.
268+
Factors such as the sensitivity of the data and the potential impact of a security breach should guide the selection of security schemes for the API resources.
269+
Some security schemes, such as basic auth and OAuth Implicit flow, are supported for compatibility with existing APIs.
270+
However, their inclusion in OpenAPI does not constitute an endorsement of their use,
271+
particularly for highly sensitive data or operations.
265272

266-
OpenAPI documents may contain references to external resources that may be dereferenced automatically by consuming tools. External resources may be hosted on different domains that may be untrusted. References in an OpenAPI document, or across OpenAPI documents may cause a cycle. Tooling must detect and handle cycles to prevent resource exhaustion.
273+
OpenAPI documents may contain references to external resources that may be dereferenced automatically by consuming tools.
274+
External resources may be hosted on different domains that may be untrusted.
275+
References in an OpenAPI document, or across OpenAPI documents may cause a cycle.
276+
Tooling must detect and handle cycles to prevent resource exhaustion.
267277

268-
Certain properties allow the use of Markdown which can contain HTML including script. It is the responsibility of tooling to appropriately sanitize the Markdown.
278+
Certain properties allow the use of Markdown which can contain HTML including script.
279+
It is the responsibility of tooling to appropriately sanitize the Markdown.
269280

270281
OpenAPI documents use [jsonschema] therefore share the security consideration of JSON Schema.
271282

@@ -279,8 +290,8 @@ with the registration information provided in the sections below.
279290
|--------------------------------------|---------------------------------------------|
280291
| Media Type | Registration information section |
281292
|--------------------------------------|---------------------------------------------|
282-
| application/openapi+yaml | {{openapi-yaml}} of this document |
283293
| application/openapi+json | {{openapi-json}} of this document |
294+
| application/openapi+yaml | {{openapi-yaml}} of this document |
284295
|--------------------------------------|---------------------------------------------|
285296

286297
--- back
@@ -309,6 +320,9 @@ Q: Why this document?
309320
This has some security implications too
310321
(eg. wrt on identifying parsers or treat downloads)
311322

323+
Q: Do we support OpenAPI 2.0 / Swagger?
324+
: No, this document is about OpenAPI 3.0 and above.
325+
312326
# Change Log
313327
{: numbered="false" removeinrfc="true"}
314328

0 commit comments

Comments
 (0)