Skip to content

Commit 972ca7e

Browse files
committed
Auto-generated documentation from e9b8f63
1 parent 38f43e5 commit 972ca7e

6 files changed

Lines changed: 459 additions & 468 deletions

api/JsonApiDotNetCore.Middleware.HeaderConstants.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,14 @@ <h4 class="section">Field Value</h4>
221221

222222
<h3 id="JsonApiDotNetCore_Middleware_HeaderConstants_RelaxedAtomicOperationsMediaType" data-uid="JsonApiDotNetCore.Middleware.HeaderConstants.RelaxedAtomicOperationsMediaType">
223223
RelaxedAtomicOperationsMediaType
224-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/HeaderConstants.cs/#L17"><i class="bi bi-code-slash"></i></a>
224+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/HeaderConstants.cs/#L18"><i class="bi bi-code-slash"></i></a>
225225
</h3>
226226

227227
<div class="markdown level1 summary"></div>
228228
<div class="markdown level1 conceptual"></div>
229229

230230
<div class="codewrapper">
231-
<pre><code class="lang-csharp hljs">[Obsolete(&quot;Use JsonApiMediaType.RelaxedAtomicOperations.ToString() instead.&quot;)]
231+
<pre><code class="lang-csharp hljs">[Obsolete(&quot;This media type is no longer needed and will be removed in a future version. Use JsonApiMediaType.AtomicOperations.ToString() instead.&quot;)]
232232
public const string RelaxedAtomicOperationsMediaType = &quot;application/vnd.api+json; ext=atomic&quot;</code></pre>
233233
</div>
234234

api/JsonApiDotNetCore.Middleware.JsonApiContentNegotiator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ <h4 class="section" id="JsonApiDotNetCore_Middleware_JsonApiContentNegotiator_Ge
284284

285285
<h3 id="JsonApiDotNetCore_Middleware_JsonApiContentNegotiator_IsOperationsEndpoint" data-uid="JsonApiDotNetCore.Middleware.JsonApiContentNegotiator.IsOperationsEndpoint">
286286
IsOperationsEndpoint()
287-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiContentNegotiator.cs/#L206"><i class="bi bi-code-slash"></i></a>
287+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiContentNegotiator.cs/#L208"><i class="bi bi-code-slash"></i></a>
288288
</h3>
289289

290290
<div class="markdown level1 summary"></div>

api/JsonApiDotNetCore.Middleware.JsonApiMediaType.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ <h2 class="section" id="constructors">Constructors
155155

156156
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaType__ctor_System_Collections_Generic_IEnumerable_JsonApiDotNetCore_Middleware_JsonApiMediaTypeExtension__" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaType.#ctor(System.Collections.Generic.IEnumerable{JsonApiDotNetCore.Middleware.JsonApiMediaTypeExtension})">
157157
JsonApiMediaType(IEnumerable&lt;JsonApiMediaTypeExtension&gt;)
158-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L41"><i class="bi bi-code-slash"></i></a>
158+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L42"><i class="bi bi-code-slash"></i></a>
159159
</h3>
160160

161161
<div class="markdown level1 summary"></div>
@@ -186,7 +186,7 @@ <h4 class="section">Parameters</h4>
186186

187187
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaType__ctor_System_Collections_Generic_IReadOnlySet_JsonApiDotNetCore_Middleware_JsonApiMediaTypeExtension__" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaType.#ctor(System.Collections.Generic.IReadOnlySet{JsonApiDotNetCore.Middleware.JsonApiMediaTypeExtension})">
188188
JsonApiMediaType(IReadOnlySet&lt;JsonApiMediaTypeExtension&gt;)
189-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L34"><i class="bi bi-code-slash"></i></a>
189+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L35"><i class="bi bi-code-slash"></i></a>
190190
</h3>
191191

192192
<div class="markdown level1 summary"></div>
@@ -282,15 +282,16 @@ <h4 class="section">Field Value</h4>
282282

283283
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaType_RelaxedAtomicOperations" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaType.RelaxedAtomicOperations">
284284
RelaxedAtomicOperations
285-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L30"><i class="bi bi-code-slash"></i></a>
285+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L31"><i class="bi bi-code-slash"></i></a>
286286
</h3>
287287

288288
<div class="markdown level1 summary"><p>Gets the JSON:API media type with the &quot;atomic&quot; extension.</p>
289289
</div>
290290
<div class="markdown level1 conceptual"></div>
291291

292292
<div class="codewrapper">
293-
<pre><code class="lang-csharp hljs">public static readonly JsonApiMediaType RelaxedAtomicOperations</code></pre>
293+
<pre><code class="lang-csharp hljs">[Obsolete(&quot;This media type is no longer needed and will be removed in a future version. Use AtomicOperations instead.&quot;)]
294+
public static readonly JsonApiMediaType RelaxedAtomicOperations</code></pre>
294295
</div>
295296

296297

@@ -318,7 +319,7 @@ <h2 class="section" id="properties">Properties
318319

319320
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaType_Extensions" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaType.Extensions">
320321
Extensions
321-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L32"><i class="bi bi-code-slash"></i></a>
322+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L33"><i class="bi bi-code-slash"></i></a>
322323
</h3>
323324

324325
<div class="markdown level1 summary"></div>
@@ -353,7 +354,7 @@ <h2 class="section" id="methods">Methods
353354

354355
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaType_Equals_JsonApiDotNetCore_Middleware_JsonApiMediaType_" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaType.Equals(JsonApiDotNetCore.Middleware.JsonApiMediaType)">
355356
Equals(JsonApiMediaType?)
356-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L157"><i class="bi bi-code-slash"></i></a>
357+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L158"><i class="bi bi-code-slash"></i></a>
357358
</h3>
358359

359360
<div class="markdown level1 summary"><p>Indicates whether the current object is equal to another object of the same type.</p>
@@ -392,7 +393,7 @@ <h4 class="section">Returns</h4>
392393

393394
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaType_Equals_System_Object_" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaType.Equals(System.Object)">
394395
Equals(object?)
395-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L172"><i class="bi bi-code-slash"></i></a>
396+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L173"><i class="bi bi-code-slash"></i></a>
396397
</h3>
397398

398399
<div class="markdown level1 summary"><p>Determines whether the specified object is equal to the current object.</p>
@@ -430,7 +431,7 @@ <h4 class="section">Returns</h4>
430431

431432
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaType_GetHashCode" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaType.GetHashCode">
432433
GetHashCode()
433-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L177"><i class="bi bi-code-slash"></i></a>
434+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L178"><i class="bi bi-code-slash"></i></a>
434435
</h3>
435436

436437
<div class="markdown level1 summary"><p>Serves as the default hash function.</p>
@@ -463,7 +464,7 @@ <h4 class="section">Returns</h4>
463464

464465
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaType_ToString" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaType.ToString">
465466
ToString()
466-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L111"><i class="bi bi-code-slash"></i></a>
467+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaType.cs/#L112"><i class="bi bi-code-slash"></i></a>
467468
</h3>
468469

469470
<div class="markdown level1 summary"><p>Returns a string that represents the current object.</p>

api/JsonApiDotNetCore.Middleware.JsonApiMediaTypeExtension.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ <h2 class="section" id="constructors">Constructors
155155

156156
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaTypeExtension__ctor_System_String_" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaTypeExtension.#ctor(System.String)">
157157
JsonApiMediaTypeExtension(string)
158-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaTypeExtension.cs/#L16"><i class="bi bi-code-slash"></i></a>
158+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaTypeExtension.cs/#L18"><i class="bi bi-code-slash"></i></a>
159159
</h3>
160160

161161
<div class="markdown level1 summary"></div>
@@ -219,14 +219,15 @@ <h4 class="section">Field Value</h4>
219219

220220
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaTypeExtension_RelaxedAtomicOperations" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaTypeExtension.RelaxedAtomicOperations">
221221
RelaxedAtomicOperations
222-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaTypeExtension.cs/#L12"><i class="bi bi-code-slash"></i></a>
222+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaTypeExtension.cs/#L14"><i class="bi bi-code-slash"></i></a>
223223
</h3>
224224

225225
<div class="markdown level1 summary"></div>
226226
<div class="markdown level1 conceptual"></div>
227227

228228
<div class="codewrapper">
229-
<pre><code class="lang-csharp hljs">public static readonly JsonApiMediaTypeExtension RelaxedAtomicOperations</code></pre>
229+
<pre><code class="lang-csharp hljs">[Obsolete(&quot;This media type is no longer needed and will be removed in a future version. Use AtomicOperations instead.&quot;)]
230+
public static readonly JsonApiMediaTypeExtension RelaxedAtomicOperations</code></pre>
230231
</div>
231232

232233

@@ -254,7 +255,7 @@ <h2 class="section" id="properties">Properties
254255

255256
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaTypeExtension_UnescapedValue" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaTypeExtension.UnescapedValue">
256257
UnescapedValue
257-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaTypeExtension.cs/#L14"><i class="bi bi-code-slash"></i></a>
258+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaTypeExtension.cs/#L16"><i class="bi bi-code-slash"></i></a>
258259
</h3>
259260

260261
<div class="markdown level1 summary"></div>
@@ -289,7 +290,7 @@ <h2 class="section" id="methods">Methods
289290

290291
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaTypeExtension_Equals_JsonApiDotNetCore_Middleware_JsonApiMediaTypeExtension_" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaTypeExtension.Equals(JsonApiDotNetCore.Middleware.JsonApiMediaTypeExtension)">
291292
Equals(JsonApiMediaTypeExtension?)
292-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaTypeExtension.cs/#L28"><i class="bi bi-code-slash"></i></a>
293+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaTypeExtension.cs/#L30"><i class="bi bi-code-slash"></i></a>
293294
</h3>
294295

295296
<div class="markdown level1 summary"><p>Indicates whether the current object is equal to another object of the same type.</p>
@@ -328,7 +329,7 @@ <h4 class="section">Returns</h4>
328329

329330
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaTypeExtension_Equals_System_Object_" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaTypeExtension.Equals(System.Object)">
330331
Equals(object?)
331-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaTypeExtension.cs/#L43"><i class="bi bi-code-slash"></i></a>
332+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaTypeExtension.cs/#L45"><i class="bi bi-code-slash"></i></a>
332333
</h3>
333334

334335
<div class="markdown level1 summary"><p>Determines whether the specified object is equal to the current object.</p>
@@ -366,7 +367,7 @@ <h4 class="section">Returns</h4>
366367

367368
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaTypeExtension_GetHashCode" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaTypeExtension.GetHashCode">
368369
GetHashCode()
369-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaTypeExtension.cs/#L48"><i class="bi bi-code-slash"></i></a>
370+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaTypeExtension.cs/#L50"><i class="bi bi-code-slash"></i></a>
370371
</h3>
371372

372373
<div class="markdown level1 summary"><p>Serves as the default hash function.</p>
@@ -399,7 +400,7 @@ <h4 class="section">Returns</h4>
399400

400401
<h3 id="JsonApiDotNetCore_Middleware_JsonApiMediaTypeExtension_ToString" data-uid="JsonApiDotNetCore.Middleware.JsonApiMediaTypeExtension.ToString">
401402
ToString()
402-
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaTypeExtension.cs/#L23"><i class="bi bi-code-slash"></i></a>
403+
<a class="header-action link-secondary" title="View source" href="https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/master/src/JsonApiDotNetCore/Middleware/JsonApiMediaTypeExtension.cs/#L25"><i class="bi bi-code-slash"></i></a>
403404
</h3>
404405

405406
<div class="markdown level1 summary"><p>Returns a string that represents the current object.</p>

ext/openapi/index.html

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -76,28 +76,17 @@
7676
<article data-uid="">
7777
<h1 id="jsonapi-extension-for-openapi">JSON:API Extension for OpenAPI</h1>
7878

79-
<p>This extension facilitates using OpenAPI client generators targeting JSON:API documents.</p>
79+
<p>This extension facilitates the use of OpenAPI client generators targeting JSON:API documents.</p>
8080
<p>In JSON:API, a resource object contains the <code>type</code> member, which defines the structure of nested <a href="https://jsonapi.org/format/#document-resource-object-attributes">attributes</a> and <a href="https://jsonapi.org/format/#document-resource-object-relationships">relationships</a> objects.
8181
While OpenAPI supports such constraints using <code>allOf</code> inheritance with a discriminator property for the <code>data</code> member,
8282
it provides no way to express that the discriminator recursively applies to nested objects.</p>
8383
<p>This extension addresses that limitation by defining additional discriminator properties to guide code generation tools.</p>
8484
<h2 id="uri">URI</h2>
85-
<p>This extension has the URI <code>https://www.jsonapi.net/ext/openapi</code>.
86-
Because code generators often choke on the double quotes in <code>Accept</code> and <code>Content-Type</code> HTTP header values, a relaxed form is also permitted: <code>openapi</code>.</p>
87-
<p>For example, the following <code>Content-Type</code> header:</p>
88-
<pre><code class="lang-http">Content-Type: application/vnd.api+json; ext=&quot;https://www.jsonapi.net/ext/openapi&quot;
89-
</code></pre>
90-
<p>is equivalent to:</p>
91-
<pre><code class="lang-http">Content-Type: application/vnd.api+json; ext=openapi
92-
</code></pre>
93-
<p>To avoid the need for double quotes when multiple extensions are used, the following relaxed form can be used:</p>
94-
<pre><code class="lang-http">Content-Type: application/vnd.api+json; ext=openapi; ext=atomic
95-
</code></pre>
96-
<div class="NOTE">
97-
<h5>Note</h5>
98-
<p>The <a href="https://jsonapi.org/format/#media-type-parameter-rules">base specification</a> <em>forbids</em> the use of multiple <code>ext</code> parameters
99-
and <em>requires</em> that each extension name must be a URI.
100-
This extension relaxes both constraints for practical reasons, to workaround bugs in client generators that produce broken code otherwise.</p>
85+
<p>This extension has the URI <code>https://www.jsonapi.net/ext/openapi</code>.</p>
86+
<div class="CAUTION">
87+
<h5>Caution</h5>
88+
<p>Early preview versions of this specification also permitted using <code>openapi</code> instead of the URI to work around bugs in client generators.
89+
This is no longer supported and is not part of the final version.</p>
10190
</div>
10291
<h2 id="namespace">Namespace</h2>
10392
<p>This extension uses the namespace <code>openapi</code>.</p>
@@ -114,7 +103,7 @@ <h3 id="resource-objects">Resource Objects</h3>
114103
<ul>
115104
<li><code>openapi:discriminator</code> - A string that MUST be identical to the <code>type</code> member in the containing <a href="https://jsonapi.org/format/#document-resource-objects">resource object</a>.</li>
116105
</ul>
117-
<p>Here's how an article (i.e. a resource of type &quot;articles&quot;) might appear in a document:</p>
106+
<p>Here's how an article (a resource of type &quot;articles&quot;) might appear in a document:</p>
118107
<pre><code class="lang-json">{
119108
&quot;data&quot;: {
120109
&quot;type&quot;: &quot;articles&quot;,
@@ -136,7 +125,7 @@ <h3 id="atomic-operations">Atomic Operations</h3>
136125
<p>In addition to the members allowed by the <a href="https://jsonapi.org/ext/atomic/">Atomic Operations extension</a>,
137126
the following member MAY be included in elements of an <code>atomic:operations</code> array:</p>
138127
<ul>
139-
<li><code>openapi:discriminator</code> - A free-format string to facilitate generation of client code.</li>
128+
<li><code>openapi:discriminator</code> - A free-format string to facilitate the generation of client code.</li>
140129
</ul>
141130
<p>For example:</p>
142131
<pre><code class="lang-http">POST /operations HTTP/1.1

0 commit comments

Comments
 (0)