Skip to content

Commit 5e41d34

Browse files
Apply suggestions from PR review
Co-authored-by: Rick Anderson <[email protected]>
1 parent eda87e2 commit 5e41d34

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

aspnetcore/fundamentals/openapi/customize-openapi.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ Transformers can be registered onto the document by calling the <xref:Microsoft.
4444

4545
Transformers are executed as follows:
4646

47-
* Schema transformers are executed when a schema is register to the document. Schema transformers are executed in the order in which they were added.
47+
* Schema transformers are executed when a schema is registered to the document. Schema transformers are executed in the order in which they were added.
4848
All schemas are added to the document before any operation processing occurs, so all schema transformers are executed before any operation transformers.
4949
* Operation transformers are executed when an operation is added to the document. Operation transformers are executed in the order in which they were added.
5050
All operations are added to the document before any document transformers are executed.
5151
* Document transformers are executed when the document is generated. This is the final pass over the document, and all operations and schemas have been add by this point.
52-
* When an application is configured to generate multiple OpenAPI documents, each document is generated in the order in which it was registered, and the transformers are executed as documents are generated.
52+
* When an app is configured to generate multiple OpenAPI documents, each document is generated in the order in which it was registered, and the transformers are executed as documents are generated.
5353

5454
For example, in the following snippet:
55-
* SchemaTransformer2 is executed has access to the modifications made by SchemaTransformer1.
56-
* Both OperationTransformer1 and OperationTransformer2 have access to the modifications made by both schema transformers for the types involved in the operation they are called to process.
57-
* OperationTransformer2 is executed after OperationTransformer1, so it has access to the modifications made by OperationTransformer1.
58-
* Both DocumentTransformer1 and DocumentTransformer2 are executed after all operations and schemas have been added to the document, so they have access to all modifications made by the operation and schema transformers.
59-
* DocumentTransformer2 is executed after DocumentTransformer1, so it has access to the modifications made by DocumentTransformer1.
55+
* `SchemaTransformer2` is executed and has access to the modifications made by `SchemaTransformer1`.
56+
* Both `OperationTransformer1` and `OperationTransformer2` have access to the modifications made by both schema transformers for the types involved in the operation they are called to process.
57+
* `OperationTransformer2` is executed after `OperationTransformer1`, so it has access to the modifications made by `OperationTransformer1`.
58+
* Both `DocumentTransformer1` and `DocumentTransformer2` are executed after all operations and schemas have been added to the document, so they have access to all modifications made by the operation and schema transformers.
59+
* `DocumentTransformer2` is executed after `DocumentTransformer1`, so it has access to the modifications made by `DocumentTransformer1`.
6060

6161
[!code-csharp[](~/fundamentals/openapi/samples/9.x/WebMinOpenApi/Program.cs?name=snippet_transInOut&highlight=6-14)]
6262

0 commit comments

Comments
 (0)