Skip to content

Commit

Permalink
Fix and Edit build time OpenAPI/ra
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick-Anderson committed Aug 15, 2024
1 parent b074ef6 commit 450f254
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 1 addition & 7 deletions aspnetcore/fundamentals/openapi/buildtime-openapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,7 @@ $ cat obj/MyTestApi.json

The generated `obj/{MyProjectName}.json` file contains the [OpenAPI version, title, endpoints, and more](https://learn.openapis.org/specification/structure.html). The following JSON shows the first few lines of obj/MyTestApi.json file:

```json
{
"openapi": "3.0.0",
"info": {
"title": "MyTestApi",


:::code language="json" source="~/fundamentals/openapi/samples/9.x/BuildTime/csproj/MyTestApi.json" id="snippet_1":::

## Customize build-time document generation

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//Copy from \obj\MyTestApi.json
// <snippet_1>
{
"openapi": "3.0.1",
"info": {
Expand All @@ -14,6 +16,7 @@
"responses": {
"200": {
"description": "OK",
// </snippet_1>
"content": {
"application/json": {
"schema": {
Expand Down Expand Up @@ -47,10 +50,10 @@
}
}
},
"components": { },
"components": {},
"tags": [
{
"name": "MyTestApi"
}
]
}
}

0 comments on commit 450f254

Please sign in to comment.