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: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,6 +167,26 @@ switch (request.TryMatchAcceptMediaType<Response.OK200>(out var matchedMediaType
167
167
}
168
168
```
169
169
170
+
## Sequential Media Types
171
+
OpenAPI 3.2 added support for [sequential media types](https://spec.openapis.org/oas/v3.2.0.html#sequential-media-types). The following sequential media types are supported for both request and response media content:
172
+
- application/jsonl
173
+
- application/x-ndjson
174
+
- application/x-jsonlines
175
+
- application/json-seq
176
+
- application/geo+json-seq
177
+
178
+
Other sequential media types can be implemented by simply following the expected naming convention and placing the implementations in the expected namespace, see the compilation error of any missing media type class.
179
+
180
+
### Request Content
181
+
Inherit from `SequentialJsonEnumerable<T>` using the following naming convention:
See the [OpenAPI 3.2 examples](#examples) for further details how to consume and produce sequential media types.
189
+
170
190
## Authentication and Authorization
171
191
OpenAPI defines [security scheme objects](https://spec.openapis.org/oas/latest#security-scheme-object) for authentication and authorization mechanisms. The generator implement endpoint filters that corresponds to the security declaration of each operation. Do _not_ call `UseAuthentication` or similar when configuring the application.
0 commit comments