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: src/oas.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2071,7 +2071,7 @@ requestBody:
2071
2071
type: string
2072
2072
icon:
2073
2073
# The default content type with `contentEncoding` present
2074
-
# is "application/octet-stream", so we need to set the correct
2074
+
# is `application/octet-stream`, so we need to set the correct
2075
2075
# image media type(s) in the Encoding Object.
2076
2076
type: string
2077
2077
contentEncoding: base64url
@@ -2128,20 +2128,20 @@ requestBody:
2128
2128
type: object
2129
2129
properties:
2130
2130
# default content type for a string without `contentEncoding`
2131
-
# is "text/plain"
2131
+
# is `text/plain`
2132
2132
id:
2133
2133
type: string
2134
2134
format: uuid
2135
2135
2136
2136
# default content type for a schema without `type`
2137
-
# is "application/octet-stream"
2137
+
# is `application/octet-stream`
2138
2138
profileImage: {}
2139
2139
2140
2140
# for arrays, the `encoding` field applies the Encoding Object
2141
2141
# to each item individually and determines the default content type
2142
2142
# based on the type in the `items` subschema, which in this example
2143
2143
# is an object, so the default content type for each item is
2144
-
#"application/json"
2144
+
#`application/json`
2145
2145
addresses:
2146
2146
type: array
2147
2147
items:
@@ -2160,13 +2160,13 @@ requestBody:
2160
2160
schema:
2161
2161
type: object
2162
2162
properties:
2163
-
# No Encoding Object, so use default "text/plain"
2163
+
# No Encoding Object, so use default `text/plain`
2164
2164
id:
2165
2165
type: string
2166
2166
format: uuid
2167
2167
2168
-
# Encoding Object overrides the default "application/json" content type
2169
-
# for each item in the array with "application/xml; charset=utf-8"
2168
+
# Encoding Object overrides the default `application/json` content type
2169
+
# for each item in the array with `application/xml; charset=utf-8`
2170
2170
addresses:
2171
2171
description: addresses in XML format
2172
2172
type: array
@@ -2217,7 +2217,7 @@ multipart/mixed:
2217
2217
type: array
2218
2218
prefixItems:
2219
2219
- # default content type for objects
2220
-
# is "application/json"
2220
+
# is `application/json`
2221
2221
type: object
2222
2222
properties:
2223
2223
author:
@@ -2230,7 +2230,7 @@ multipart/mixed:
2230
2230
license:
2231
2231
type: string
2232
2232
- # default content type for a schema without `type`
2233
-
# is "application/octet-stream", which we need
2233
+
# is `application/octet-stream`, which we need
2234
2234
# to override.
2235
2235
{}
2236
2236
prefixEncoding:
@@ -5395,7 +5395,7 @@ components:
5395
5395
In this example, the retrieval URIs are irrelevant because both documents define `$self`.
5396
5396
5397
5397
The relative `$ref` in the first document is resolved against `$self` to produce `https://example.com/api/shared/foo#/components/requestBodies/Foo`.
5398
-
The portion of that URI before the "#" matches the `$self` of the second document, so the reference target is resolved to `#/components/requestBodies/Foo` in that second document.
5398
+
The portion of that URI before the `#` matches the `$self` of the second document, so the reference target is resolved to `#/components/requestBodies/Foo` in that second document.
5399
5399
5400
5400
In that document, the `$ref` in the Request Body Object is resolved using that document's `$self` as the base URI, producing `https://example.com/api/schemas/foo`.
5401
5401
This matches the `$id` at `#/components/schemas/Foo/$id` so it points to that Schema Object.
0 commit comments