You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: draft-ietf-httpapi-rest-api-mediatypes.md
+25-11Lines changed: 25 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -144,10 +144,10 @@ Encoding considerations:
144
144
: Same as "application/json"
145
145
146
146
Security considerations:
147
-
: See {{security-considerations}} of this document, "application/json" and [OAS]
147
+
: See {{sec}} of this document, "application/json" and [OAS]
148
148
149
149
Interoperability considerations:
150
-
: See "application/json" and [OAS]
150
+
: See {{int}} of this document, "application/json" and [OAS]
151
151
152
152
Published specification:
153
153
: this document, [OAS]
@@ -204,10 +204,10 @@ Encoding considerations:
204
204
: Same as "+yaml" Structured Syntax Suffix
205
205
206
206
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]
208
208
209
209
Interoperability considerations:
210
-
: See "+yaml" Structured Syntax Suffix and [OAS]
210
+
: See {{int}} of this document, "+yaml" Structured Syntax Suffix and [OAS]
211
211
212
212
Published specification:
213
213
: [OAS]
@@ -245,27 +245,38 @@ Change controller:
245
245
: IETF
246
246
247
247
248
-
# Interoperability Considerations
248
+
# Interoperability Considerations {#int}
249
249
250
250
Interoperability requirements for media type
251
251
registrations are discussed in Section 4.6 of {{!MEDIATYPE=RFC6838}}
252
252
and in the Interoperability Considerations of the "+yaml" Structured Syntax Suffix.
253
253
254
-
# Security Considerations
254
+
# Security Considerations {#sec}
255
255
256
256
Security requirements for media type
257
257
registrations are discussed in Section 4.6 of {{!MEDIATYPE=RFC6838}}.
258
258
and in the Security Considerations of the "+yaml" Structured Syntax Suffix.
259
259
260
260
## General Considerations
261
261
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.
263
265
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.
265
272
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.
267
277
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.
269
280
270
281
OpenAPI documents use [jsonschema] therefore share the security consideration of JSON Schema.
271
282
@@ -279,8 +290,8 @@ with the registration information provided in the sections below.
0 commit comments