Skip to content

Commit ab8286e

Browse files
committed
Merge branch 'feat/oai-3-2-support' into feat/add-new-fields-tags
2 parents b9976d4 + fb5c92f commit ab8286e

File tree

48 files changed

+1329
-155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1329
-155
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ trigger:
77
include:
88
- main
99
- support/v1
10+
- support/v2
1011
tags:
1112
include:
1213
- 'v*'
@@ -15,6 +16,7 @@ pr:
1516
include:
1617
- main
1718
- support/v1
19+
- support/v2
1820

1921
variables:
2022
buildPlatform: 'Any CPU'
@@ -307,6 +309,7 @@ extends:
307309
publishFeedCredentials: 'OpenAPI Nuget Connection'
308310

309311
- deployment: create_github_release
312+
condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
310313
templateContext:
311314
type: releaseJob
312315
isProduction: true

.github/policies/OpenAPI.NET-branch-protection.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,39 @@ configuration:
8181
# Restrict who can dismiss pull request reviews. boolean
8282
restrictsReviewDismissals: false
8383

84+
- branchNamePattern: support/v2
85+
# This branch pattern applies to the following branches as of approximately 02/27/2025 15:28:20:
86+
# support/v1
87+
88+
# Specifies whether this branch can be deleted. boolean
89+
allowsDeletions: false
90+
# Specifies whether forced pushes are allowed on this branch. boolean
91+
allowsForcePushes: false
92+
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
93+
dismissStaleReviews: true
94+
# Specifies whether admins can overwrite branch protection. boolean
95+
isAdminEnforced: true
96+
# Indicates whether "Require a pull request before merging" is enabled. boolean
97+
requiresPullRequestBeforeMerging: true
98+
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
99+
requiredApprovingReviewsCount: 1
100+
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
101+
requireCodeOwnersReview: true
102+
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
103+
requiresCommitSignatures: false
104+
# Are conversations required to be resolved before merging? boolean
105+
requiresConversationResolution: true
106+
# Are merge commits prohibited from being pushed to this branch. boolean
107+
requiresLinearHistory: false
108+
# Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status
109+
requiredStatusChecks:
110+
- license/cla
111+
- CodeQL
112+
- Continuous Integration
113+
# Require branches to be up to date before merging. boolean
114+
requiresStrictStatusChecks: false
115+
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
116+
restrictsPushes: false
117+
# Restrict who can dismiss pull request reviews. boolean
118+
restrictsReviewDismissals: false
119+

.github/release-please.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ primaryBranch: main
33
handleGHRelease: true
44
branches:
55
- branch: support/v1
6+
manifest: true
7+
handleGHRelease: true
8+
- branch: support/v2
69
manifest: true
710
handleGHRelease: true

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CodeQL Analysis
22

33
on:
44
push:
5-
branches: [ main, support/v1 ]
5+
branches: [ main, support/v1, support/v2 ]
66
pull_request:
77
schedule:
88
- cron: '0 8 * * *'

.github/workflows/release-please-gha.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
branches:
1616
- main
1717
- support/v1
18+
- support/v2
1819

1920
jobs:
2021
release:

performance/benchmark/BenchmarkDotNet.Artifacts/results/performance.Descriptions-report-github.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ WarmupCount=3
1212
```
1313
| Method | Mean | Error | StdDev | Gen0 | Gen1 | Gen2 | Allocated |
1414
|------------- |---------------:|-------------:|-------------:|-----------:|-----------:|----------:|-------------:|
15-
| PetStoreYaml | 833.4 μs | 1,308.6 μs | 71.73 μs | 62.5000 | 7.8125 | - | 387.49 KB |
16-
| PetStoreJson | 223.4 μs | 175.2 μs | 9.60 μs | 40.0391 | 8.7891 | - | 249.63 KB |
17-
| GHESYaml | 1,249,667.2 μs | 733,749.3 μs | 40,219.28 μs | 66000.0000 | 22000.0000 | 4000.0000 | 384533.09 KB |
18-
| GHESJson | 653,588.2 μs | 729,353.4 μs | 39,978.32 μs | 40000.0000 | 16000.0000 | 3000.0000 | 246004.59 KB |
15+
| PetStoreYaml | 499.0 μs | 459.9 μs | 25.21 μs | 62.5000 | 11.7188 | - | 387.71 KB |
16+
| PetStoreJson | 240.7 μs | 638.0 μs | 34.97 μs | 40.0391 | 8.7891 | - | 249.85 KB |
17+
| GHESYaml | 1,055,965.3 μs | 311,428.8 μs | 17,070.46 μs | 66000.0000 | 22000.0000 | 4000.0000 | 384550.33 KB |
18+
| GHESJson | 540,193.4 μs | 107,223.7 μs | 5,877.29 μs | 40000.0000 | 16000.0000 | 3000.0000 | 246021.04 KB |
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Method,Job,AnalyzeLaunchVariance,EvaluateOverhead,MaxAbsoluteError,MaxRelativeError,MinInvokeCount,MinIterationTime,OutlierMode,Affinity,EnvironmentVariables,Jit,LargeAddressAware,Platform,PowerPlanMode,Runtime,AllowVeryLargeObjects,Concurrent,CpuGroups,Force,HeapAffinitizeMask,HeapCount,NoAffinitize,RetainVm,Server,Arguments,BuildConfiguration,Clock,EngineFactory,NuGetReferences,Toolchain,IsMutator,InvocationCount,IterationCount,IterationTime,LaunchCount,MaxIterationCount,MaxWarmupIterationCount,MemoryRandomization,MinIterationCount,MinWarmupIterationCount,RunStrategy,UnrollFactor,WarmupCount,Mean,Error,StdDev,Gen0,Gen1,Gen2,Allocated
2-
PetStoreYaml,ShortRun,False,Default,Default,Default,Default,Default,Default,11111111,Empty,RyuJit,Default,X64,8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c,.NET 8.0,False,True,False,True,Default,Default,False,False,False,Default,Default,Default,Default,Default,Default,Default,Default,3,Default,1,Default,Default,Default,Default,Default,Default,16,3,833.4 μs,"1,308.6 μs",71.73 μs,62.5000,7.8125,0.0000,387.49 KB
3-
PetStoreJson,ShortRun,False,Default,Default,Default,Default,Default,Default,11111111,Empty,RyuJit,Default,X64,8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c,.NET 8.0,False,True,False,True,Default,Default,False,False,False,Default,Default,Default,Default,Default,Default,Default,Default,3,Default,1,Default,Default,Default,Default,Default,Default,16,3,223.4 μs,175.2 μs,9.60 μs,40.0391,8.7891,0.0000,249.63 KB
4-
GHESYaml,ShortRun,False,Default,Default,Default,Default,Default,Default,11111111,Empty,RyuJit,Default,X64,8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c,.NET 8.0,False,True,False,True,Default,Default,False,False,False,Default,Default,Default,Default,Default,Default,Default,Default,3,Default,1,Default,Default,Default,Default,Default,Default,16,3,"1,249,667.2 μs","733,749.3 μs","40,219.28 μs",66000.0000,22000.0000,4000.0000,384533.09 KB
5-
GHESJson,ShortRun,False,Default,Default,Default,Default,Default,Default,11111111,Empty,RyuJit,Default,X64,8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c,.NET 8.0,False,True,False,True,Default,Default,False,False,False,Default,Default,Default,Default,Default,Default,Default,Default,3,Default,1,Default,Default,Default,Default,Default,Default,16,3,"653,588.2 μs","729,353.4 μs","39,978.32 μs",40000.0000,16000.0000,3000.0000,246004.59 KB
2+
PetStoreYaml,ShortRun,False,Default,Default,Default,Default,Default,Default,11111111,Empty,RyuJit,Default,X64,8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c,.NET 8.0,False,True,False,True,Default,Default,False,False,False,Default,Default,Default,Default,Default,Default,Default,Default,3,Default,1,Default,Default,Default,Default,Default,Default,16,3,499.0 μs,459.9 μs,25.21 μs,62.5000,11.7188,0.0000,387.71 KB
3+
PetStoreJson,ShortRun,False,Default,Default,Default,Default,Default,Default,11111111,Empty,RyuJit,Default,X64,8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c,.NET 8.0,False,True,False,True,Default,Default,False,False,False,Default,Default,Default,Default,Default,Default,Default,Default,3,Default,1,Default,Default,Default,Default,Default,Default,16,3,240.7 μs,638.0 μs,34.97 μs,40.0391,8.7891,0.0000,249.85 KB
4+
GHESYaml,ShortRun,False,Default,Default,Default,Default,Default,Default,11111111,Empty,RyuJit,Default,X64,8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c,.NET 8.0,False,True,False,True,Default,Default,False,False,False,Default,Default,Default,Default,Default,Default,Default,Default,3,Default,1,Default,Default,Default,Default,Default,Default,16,3,"1,055,965.3 μs","311,428.8 μs","17,070.46 μs",66000.0000,22000.0000,4000.0000,384550.33 KB
5+
GHESJson,ShortRun,False,Default,Default,Default,Default,Default,Default,11111111,Empty,RyuJit,Default,X64,8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c,.NET 8.0,False,True,False,True,Default,Default,False,False,False,Default,Default,Default,Default,Default,Default,Default,Default,3,Default,1,Default,Default,Default,Default,Default,Default,16,3,"540,193.4 μs","107,223.7 μs","5,877.29 μs",40000.0000,16000.0000,3000.0000,246021.04 KB

performance/benchmark/BenchmarkDotNet.Artifacts/results/performance.Descriptions-report.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang='en'>
33
<head>
44
<meta charset='utf-8' />
5-
<title>performance.Descriptions-20251001-134611</title>
5+
<title>performance.Descriptions-20251002-122727</title>
66

77
<style type="text/css">
88
table { border-collapse: collapse; display: block; width: 100%; overflow: auto; }
@@ -26,10 +26,10 @@
2626
<table>
2727
<thead><tr><th>Method</th><th>Mean </th><th>Error </th><th>StdDev</th><th>Gen0</th><th>Gen1</th><th>Gen2</th><th>Allocated</th>
2828
</tr>
29-
</thead><tbody><tr><td>PetStoreYaml</td><td>833.4 &mu;s</td><td>1,308.6 &mu;s</td><td>71.73 &mu;s</td><td>62.5000</td><td>7.8125</td><td>-</td><td>387.49 KB</td>
30-
</tr><tr><td>PetStoreJson</td><td>223.4 &mu;s</td><td>175.2 &mu;s</td><td>9.60 &mu;s</td><td>40.0391</td><td>8.7891</td><td>-</td><td>249.63 KB</td>
31-
</tr><tr><td>GHESYaml</td><td>1,249,667.2 &mu;s</td><td>733,749.3 &mu;s</td><td>40,219.28 &mu;s</td><td>66000.0000</td><td>22000.0000</td><td>4000.0000</td><td>384533.09 KB</td>
32-
</tr><tr><td>GHESJson</td><td>653,588.2 &mu;s</td><td>729,353.4 &mu;s</td><td>39,978.32 &mu;s</td><td>40000.0000</td><td>16000.0000</td><td>3000.0000</td><td>246004.59 KB</td>
29+
</thead><tbody><tr><td>PetStoreYaml</td><td>499.0 &mu;s</td><td>459.9 &mu;s</td><td>25.21 &mu;s</td><td>62.5000</td><td>11.7188</td><td>-</td><td>387.71 KB</td>
30+
</tr><tr><td>PetStoreJson</td><td>240.7 &mu;s</td><td>638.0 &mu;s</td><td>34.97 &mu;s</td><td>40.0391</td><td>8.7891</td><td>-</td><td>249.85 KB</td>
31+
</tr><tr><td>GHESYaml</td><td>1,055,965.3 &mu;s</td><td>311,428.8 &mu;s</td><td>17,070.46 &mu;s</td><td>66000.0000</td><td>22000.0000</td><td>4000.0000</td><td>384550.33 KB</td>
32+
</tr><tr><td>GHESJson</td><td>540,193.4 &mu;s</td><td>107,223.7 &mu;s</td><td>5,877.29 &mu;s</td><td>40000.0000</td><td>16000.0000</td><td>3000.0000</td><td>246021.04 KB</td>
3333
</tr></tbody></table>
3434
</body>
3535
</html>

performance/benchmark/BenchmarkDotNet.Artifacts/results/performance.Descriptions-report.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

performance/benchmark/BenchmarkDotNet.Artifacts/results/performance.EmptyModels-report-github.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,33 @@ Job=ShortRun IterationCount=3 LaunchCount=1
1010
WarmupCount=3
1111
1212
```
13-
| Method | Mean | Error | StdDev | Median | Gen0 | Allocated |
14-
|---------------------------- |-----------:|-----------:|-----------:|-----------:|-------:|----------:|
15-
| EmptyApiCallback | 5.415 ns | 4.303 ns | 0.2358 ns | 5.521 ns | 0.0051 | 32 B |
16-
| EmptyApiComponents | 6.164 ns | 2.517 ns | 0.1379 ns | 6.085 ns | 0.0166 | 104 B |
17-
| EmptyApiContact | 5.625 ns | 1.621 ns | 0.0889 ns | 5.671 ns | 0.0076 | 48 B |
18-
| EmptyApiDiscriminator | 3.776 ns | 1.582 ns | 0.0867 ns | 3.731 ns | 0.0076 | 48 B |
19-
| EmptyDocument | 456.245 ns | 108.844 ns | 5.9661 ns | 455.202 ns | 0.1822 | 1144 B |
20-
| EmptyApiEncoding | 6.365 ns | 25.272 ns | 1.3852 ns | 5.582 ns | 0.0089 | 56 B |
21-
| EmptyApiExample | 5.280 ns | 8.304 ns | 0.4552 ns | 5.225 ns | 0.0115 | 72 B |
22-
| EmptyApiExternalDocs | 3.872 ns | 1.425 ns | 0.0781 ns | 3.877 ns | 0.0064 | 40 B |
23-
| EmptyApiHeader | 12.084 ns | 62.948 ns | 3.4504 ns | 13.467 ns | 0.0127 | 80 B |
24-
| EmptyApiInfo | 10.935 ns | 33.482 ns | 1.8353 ns | 11.045 ns | 0.0127 | 80 B |
25-
| EmptyApiLicense | 3.560 ns | 3.861 ns | 0.2117 ns | 3.441 ns | 0.0076 | 48 B |
26-
| EmptyApiLink | 5.916 ns | 15.475 ns | 0.8482 ns | 5.640 ns | 0.0115 | 72 B |
27-
| EmptyApiMediaType | 4.687 ns | 2.876 ns | 0.1576 ns | 4.620 ns | 0.0102 | 64 B |
28-
| EmptyApiOAuthFlow | 6.307 ns | 12.462 ns | 0.6831 ns | 6.089 ns | 0.0102 | 64 B |
29-
| EmptyApiOAuthFlows | 4.014 ns | 8.654 ns | 0.4743 ns | 3.926 ns | 0.0102 | 64 B |
30-
| EmptyApiOperation | 98.755 ns | 605.086 ns | 33.1668 ns | 83.707 ns | 0.0598 | 376 B |
31-
| EmptyApiParameter | 8.824 ns | 44.871 ns | 2.4595 ns | 7.539 ns | 0.0153 | 96 B |
32-
| EmptyApiPathItem | 16.899 ns | 39.545 ns | 2.1676 ns | 16.764 ns | 0.0102 | 64 B |
33-
| EmptyApiPaths | 113.521 ns | 264.047 ns | 14.4733 ns | 112.303 ns | 0.0395 | 248 B |
34-
| EmptyApiRequestBody | 7.718 ns | 19.845 ns | 1.0878 ns | 7.988 ns | 0.0076 | 48 B |
35-
| EmptyApiResponse | 9.701 ns | 46.091 ns | 2.5264 ns | 8.521 ns | 0.0102 | 64 B |
36-
| EmptyApiResponses | 117.006 ns | 683.073 ns | 37.4415 ns | 98.488 ns | 0.0395 | 248 B |
37-
| EmptyApiSchema | 17.902 ns | 27.300 ns | 1.4964 ns | 17.828 ns | 0.0650 | 408 B |
38-
| EmptyApiSecurityRequirement | 12.267 ns | 15.713 ns | 0.8613 ns | 12.731 ns | 0.0166 | 104 B |
39-
| EmptyApiSecurityScheme | 15.371 ns | 202.404 ns | 11.0944 ns | 10.945 ns | 0.0153 | 96 B |
40-
| EmptyApiServer | 5.130 ns | 21.629 ns | 1.1855 ns | 4.641 ns | 0.0089 | 56 B |
41-
| EmptyApiServerVariable | 12.989 ns | 42.794 ns | 2.3457 ns | 13.589 ns | 0.0076 | 48 B |
42-
| EmptyApiTag | 7.620 ns | 60.522 ns | 3.3174 ns | 6.810 ns | 0.0076 | 48 B |
13+
| Method | Mean | Error | StdDev | Gen0 | Allocated |
14+
|---------------------------- |-----------:|-----------:|-----------:|-------:|----------:|
15+
| EmptyApiCallback | 4.729 ns | 4.165 ns | 0.2283 ns | 0.0051 | 32 B |
16+
| EmptyApiComponents | 6.363 ns | 4.104 ns | 0.2250 ns | 0.0166 | 104 B |
17+
| EmptyApiContact | 4.935 ns | 4.592 ns | 0.2517 ns | 0.0076 | 48 B |
18+
| EmptyApiDiscriminator | 4.489 ns | 2.375 ns | 0.1302 ns | 0.0076 | 48 B |
19+
| EmptyDocument | 500.015 ns | 516.293 ns | 28.2997 ns | 0.1822 | 1144 B |
20+
| EmptyApiEncoding | 4.969 ns | 4.077 ns | 0.2235 ns | 0.0089 | 56 B |
21+
| EmptyApiExample | 6.696 ns | 11.729 ns | 0.6429 ns | 0.0115 | 72 B |
22+
| EmptyApiExternalDocs | 4.406 ns | 2.431 ns | 0.1333 ns | 0.0064 | 40 B |
23+
| EmptyApiHeader | 8.554 ns | 32.020 ns | 1.7551 ns | 0.0127 | 80 B |
24+
| EmptyApiInfo | 7.712 ns | 8.397 ns | 0.4603 ns | 0.0127 | 80 B |
25+
| EmptyApiLicense | 6.327 ns | 24.406 ns | 1.3378 ns | 0.0076 | 48 B |
26+
| EmptyApiLink | 9.752 ns | 35.128 ns | 1.9255 ns | 0.0115 | 72 B |
27+
| EmptyApiMediaType | 6.677 ns | 16.501 ns | 0.9045 ns | 0.0127 | 80 B |
28+
| EmptyApiOAuthFlow | 6.861 ns | 9.665 ns | 0.5298 ns | 0.0102 | 64 B |
29+
| EmptyApiOAuthFlows | 6.438 ns | 19.570 ns | 1.0727 ns | 0.0102 | 64 B |
30+
| EmptyApiOperation | 83.363 ns | 10.816 ns | 0.5929 ns | 0.0598 | 376 B |
31+
| EmptyApiParameter | 8.253 ns | 22.120 ns | 1.2125 ns | 0.0153 | 96 B |
32+
| EmptyApiPathItem | 5.618 ns | 5.996 ns | 0.3286 ns | 0.0102 | 64 B |
33+
| EmptyApiPaths | 74.034 ns | 156.861 ns | 8.5981 ns | 0.0395 | 248 B |
34+
| EmptyApiRequestBody | 6.145 ns | 12.296 ns | 0.6740 ns | 0.0076 | 48 B |
35+
| EmptyApiResponse | 10.106 ns | 49.190 ns | 2.6963 ns | 0.0102 | 64 B |
36+
| EmptyApiResponses | 78.267 ns | 89.568 ns | 4.9095 ns | 0.0395 | 248 B |
37+
| EmptyApiSchema | 18.320 ns | 4.933 ns | 0.2704 ns | 0.0650 | 408 B |
38+
| EmptyApiSecurityRequirement | 12.997 ns | 16.363 ns | 0.8969 ns | 0.0166 | 104 B |
39+
| EmptyApiSecurityScheme | 8.740 ns | 9.697 ns | 0.5315 ns | 0.0153 | 96 B |
40+
| EmptyApiServer | 5.493 ns | 6.821 ns | 0.3739 ns | 0.0089 | 56 B |
41+
| EmptyApiServerVariable | 5.511 ns | 11.169 ns | 0.6122 ns | 0.0076 | 48 B |
42+
| EmptyApiTag | 5.088 ns | 3.306 ns | 0.1812 ns | 0.0076 | 48 B |

0 commit comments

Comments
 (0)