Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3125 commits
Select commit Hold shift + click to select a range
524a03d
Fix merge conflicts
MaggieKimani1 Sep 30, 2024
819b468
Bump docker/build-push-action from 6.7.0 to 6.9.0
dependabot[bot] Sep 30, 2024
e03f1d2
Bump Microsoft.OData.Edm from 8.0.1 to 8.0.2
dependabot[bot] Sep 30, 2024
9c77314
Merge pull request #1848 from microsoft/dependabot/nuget/Microsoft.OD…
baywet Oct 1, 2024
bd82cc2
Merge pull request #1847 from microsoft/dependabot/github_actions/doc…
andrueastman Oct 1, 2024
f04d45e
se workspace baseUrl to settings.BaseUrl
MaggieKimani1 Oct 1, 2024
5046131
Use current working directory to resolve file path
MaggieKimani1 Oct 1, 2024
e85e478
Clean up
MaggieKimani1 Oct 1, 2024
c3fac4e
Use ternary operator
MaggieKimani1 Oct 1, 2024
41b3d9d
code cleanup
MaggieKimani1 Oct 1, 2024
16ba3b7
Move method to workspace and remove unnecessary param
MaggieKimani1 Oct 1, 2024
983c576
Update XML comment
MaggieKimani1 Oct 1, 2024
74d8866
Update public API
MaggieKimani1 Oct 1, 2024
a60b992
Use null coalesce ?? operator
MaggieKimani1 Oct 1, 2024
aa3781b
If type array has been provided alongside a nullable keyword, don't e…
MaggieKimani1 Oct 2, 2024
6ac0bd1
Add test
MaggieKimani1 Oct 2, 2024
f1c9297
Merge pull request #1820 from microsoft/mk/handle-schemas-with-multip…
MaggieKimani1 Oct 2, 2024
e0a3bb2
Merge pull request #1849 from microsoft/mk/set-workspace-baseUrl
MaggieKimani1 Oct 2, 2024
43351ca
If the reference is a url identifier, serialize it as is
MaggieKimani1 Oct 2, 2024
e827598
Clean up logic for determining whether a locator or identifier refere…
MaggieKimani1 Oct 2, 2024
ec420d7
Remove unnecessary usings
MaggieKimani1 Oct 2, 2024
ee880e2
Add test to validate
MaggieKimani1 Oct 2, 2024
2a95547
Update src/Microsoft.OpenApi/Models/OpenApiReference.cs
MaggieKimani1 Oct 2, 2024
66fb599
Update src/Microsoft.OpenApi/Models/OpenApiReference.cs
MaggieKimani1 Oct 2, 2024
ed5c771
Merge pull request #1851 from microsoft/mk/fix-$ref-with-$id-serializ…
MaggieKimani1 Oct 2, 2024
55c3036
Add support for transforming 3.1 docs
MaggieKimani1 Oct 2, 2024
3ab3071
set 3.1 as the default version
MaggieKimani1 Oct 2, 2024
7261ad9
Merge pull request #1854 from microsoft/mk/allow-hidi-to-emit-31
MaggieKimani1 Oct 3, 2024
1941a57
Remove validation rule to make paths and webhooks optional
MaggieKimani1 Oct 3, 2024
e958896
If the input stream is JSON, read directly from stream, otherwise buf…
MaggieKimani1 Oct 3, 2024
4e50523
Merge pull request #1826 from microsoft/mk/fix-external-ref-resolution
MaggieKimani1 Oct 3, 2024
e0f20d0
Clean up comment
MaggieKimani1 Oct 3, 2024
19463dd
Merge remote-tracking branch 'origin/release/2.0.0' into mk/sync-v2-w…
MaggieKimani1 Oct 3, 2024
36fac8f
Bump Microsoft.OpenApi.OData from 2.0.0-preview.2 to 2.0.0-preview.3
dependabot[bot] Oct 3, 2024
bc1f6a0
Merge pull request #1858 from microsoft/dependabot/nuget/Microsoft.Op…
baywet Oct 4, 2024
eb3a991
Bump up Hidi version
irvinesunday Oct 4, 2024
6123803
Merge pull request #1859 from microsoft/is/bump-up-hidi
irvinesunday Oct 4, 2024
3c64451
Fix merge conflicts
MaggieKimani1 Oct 7, 2024
63c096e
Update code owners
MaggieKimani1 Oct 7, 2024
9c64bea
Remove commented out code
MaggieKimani1 Oct 7, 2024
23fde05
Merge pull request #1856 from microsoft/mk/make-update-validation-rule
MaggieKimani1 Oct 8, 2024
2102659
Merge pull request #1857 from microsoft/mk/avoid-buffering-json-data-…
MaggieKimani1 Oct 8, 2024
d04b22b
Remove threading package and disable warnings
MaggieKimani1 Oct 8, 2024
dfd6aeb
Merge pull request #1809 from Mahdigln/GetEnumFromDisplayName
MaggieKimani1 Oct 8, 2024
d302b5d
Fix merge conflict
MaggieKimani1 Oct 8, 2024
2e516a5
Merge branch 'release/2.0.0' into mk/sync-v2-with-vnext
MaggieKimani1 Oct 8, 2024
d2dc8ec
Declare Annotations as nullable to prevent null reference assignment
MaggieKimani1 Oct 8, 2024
34de044
Bump System.Text.Json from 8.0.4 to 8.0.5
dependabot[bot] Oct 8, 2024
41b0f36
Bump Microsoft.Windows.Compatibility from 8.0.8 to 8.0.10
dependabot[bot] Oct 8, 2024
9c4fd10
Merge pull request #1861 from microsoft/mk/sync-v2-with-vnext
MaggieKimani1 Oct 8, 2024
08154c7
Bump lib versions to 2.0.0-preview1
MaggieKimani1 Oct 8, 2024
51e2cd1
Merge pull request #1864 from microsoft/dependabot/nuget/Microsoft.Wi…
baywet Oct 8, 2024
5e6e1b3
Merge pull request #1862 from microsoft/dependabot/nuget/System.Text.…
andrueastman Oct 9, 2024
a3b0011
Bump Microsoft.Extensions.Logging and Microsoft.Extensions.Logging.Ab…
dependabot[bot] Oct 9, 2024
ca39123
Merge pull request #1863 from microsoft/dependabot/nuget/multi-852bd6…
andrueastman Oct 9, 2024
fed868c
Merge pull request #1865 from microsoft/mk/bump-lib-versions-to-v2
MaggieKimani1 Oct 9, 2024
21d71e9
Merge remote-tracking branch 'origin/vnext' into mk/sync-dependabot-u…
MaggieKimani1 Oct 9, 2024
a572a5f
Bump up STJ version
MaggieKimani1 Oct 9, 2024
264226b
Merge pull request #1866 from microsoft/mk/sync-dependabot-updates
MaggieKimani1 Oct 9, 2024
ab886ef
Bump Microsoft.Extensions.Logging.Console from 8.0.0 to 8.0.1
dependabot[bot] Oct 9, 2024
eda44a9
Merge pull request #1867 from microsoft/dependabot/nuget/Microsoft.Ex…
baywet Oct 10, 2024
90b51e5
Bump Microsoft.Extensions.Logging.Debug from 8.0.0 to 8.0.1
dependabot[bot] Oct 10, 2024
81114ec
Merge pull request #1868 from microsoft/dependabot/nuget/Microsoft.Ex…
baywet Oct 10, 2024
dbf9beb
Bump Microsoft.OpenApi.OData from 2.0.0-preview.3 to 2.0.0-preview.4
dependabot[bot] Oct 10, 2024
11ff30b
Merge pull request #1869 from microsoft/dependabot/nuget/Microsoft.Op…
baywet Oct 11, 2024
9245685
ci: removes zengin since he doesn't have access to the repo anymore
baywet Oct 11, 2024
581a107
Merge pull request #1870 from microsoft/baywet-patch-1
baywet Oct 11, 2024
a27f1ef
Bumps conversion lib and hidi versions
irvinesunday Oct 11, 2024
36a4f35
Merge pull request #1871 from microsoft/is/bump-up-hidi
irvinesunday Oct 11, 2024
d4d5949
Bump Verify.Xunit from 26.6.0 to 27.0.1 (#1877)
dependabot[bot] Oct 15, 2024
41adb1f
chore(deps): bump Microsoft.OpenApi.OData
dependabot[bot] Oct 17, 2024
f6d3aca
Merge pull request #1882 from microsoft/dependabot/nuget/Microsoft.Op…
baywet Oct 18, 2024
7bf081f
chore(deps): bump Microsoft.OData.Edm from 8.0.2 to 8.1.0
dependabot[bot] Oct 18, 2024
cdbb6e7
Merge pull request #1881 from microsoft/dependabot/nuget/Microsoft.OD…
baywet Oct 18, 2024
df8cdc0
fix: emits number for integer formats
baywet Oct 18, 2024
9b28a5f
Bump Hidi
irvinesunday Oct 22, 2024
1676b19
Merge pull request #1883 from microsoft/fix/integer-type
baywet Oct 22, 2024
95e25ba
Merge pull request #1884 from microsoft/is/bump-hidi
irvinesunday Oct 22, 2024
c08c3b6
use nameof for CallerArgumentExpression
WeihanLi Oct 22, 2024
125bda9
Simplify null checks and remove unnecessary usings
MaggieKimani1 Oct 23, 2024
c3373af
Merge pull request #1887 from microsoft/mk/simplify-null-check
MaggieKimani1 Oct 23, 2024
9bf3f08
remove depracated validation rule
MaggieKimani1 Oct 23, 2024
ad3b65d
clean up tests and update public API interface
MaggieKimani1 Oct 23, 2024
cb394dc
Register the Yaml reader with our factory's registry for parsing of Y…
MaggieKimani1 Oct 23, 2024
924661c
Update tool to parse 3.1 docs
MaggieKimani1 Oct 23, 2024
3c5e279
Revert "remove depracated validation rule"
MaggieKimani1 Oct 24, 2024
9c19f93
Isolate the data mismatch rule into a separate class to allow clients…
MaggieKimani1 Oct 24, 2024
2d8640a
code cleanup
MaggieKimani1 Oct 24, 2024
ae0c5a0
Add test case for opting into using the data mismatch validation rule
MaggieKimani1 Oct 24, 2024
f2fb6cc
Merge pull request #1886 from WeihanLi/patch-1
MaggieKimani1 Oct 24, 2024
a478bd2
Use Where for sequence filtering
MaggieKimani1 Oct 24, 2024
ce64230
feat: bumps v3 patch version to 3.0.4
baywet Sep 5, 2024
d71e371
docs: fixes doc comments to align with changes made in #1883
baywet Oct 24, 2024
1e6e654
Merge branch 'vnext' into merge/vnext-to-release2
baywet Oct 24, 2024
fe13c56
fix: adds missing type mappings tests
baywet Oct 24, 2024
ab0ecf9
Merge pull request #1893 from microsoft/merge/vnext-to-release2
baywet Oct 24, 2024
e85a4f1
Merge pull request #1892 from microsoft/docs/mapping-doc-comment-fix
baywet Oct 25, 2024
b40ab66
chore(deps): bump Verify.Xunit from 27.0.1 to 27.1.0
dependabot[bot] Oct 25, 2024
68e7dea
Merge pull request #1895 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Oct 28, 2024
d31b040
Bump up hidi and yoko lib versions
irvinesunday Oct 28, 2024
5c35c7b
Merge pull request #1890 from microsoft/mk/update-workbench-to-parse-…
MaggieKimani1 Oct 28, 2024
79f3e94
Define JSON schema type as a flaggable enum to allow storing strings …
MaggieKimani1 Oct 28, 2024
8c9047f
Implement helper methods for switching between enum types and their e…
MaggieKimani1 Oct 28, 2024
2e03505
Refactor tests to reflect change
MaggieKimani1 Oct 28, 2024
d0fb2c7
Update API interface
MaggieKimani1 Oct 28, 2024
42614be
Resolve merge conflicts
MaggieKimani1 Oct 28, 2024
fc49387
Merge pull request #1896 from microsoft/is/bump-libs
irvinesunday Oct 28, 2024
314880d
Fix failing tests
MaggieKimani1 Oct 29, 2024
b2e1026
code cleanup
MaggieKimani1 Oct 29, 2024
1825825
Remove recursive Ref and recursive anchor keywords as they are not su…
MaggieKimani1 Oct 29, 2024
3178fc3
Remove keywords from the proxy class and update public API
MaggieKimani1 Oct 29, 2024
aa3895f
Refactor vocabulary object to represent a dictionary; implement seria…
MaggieKimani1 Oct 29, 2024
e1feafe
Clean up V31 serialization logic to write out 3.1 keywords correctly
MaggieKimani1 Oct 29, 2024
f45de4c
Add test to validate parsing of 3.1 JSON schema keywords and update p…
MaggieKimani1 Oct 29, 2024
6987f7b
Merge pull request #1899 from microsoft/mk/remove-recursive-keywords
MaggieKimani1 Oct 29, 2024
34b81ce
Merge pull request #1888 from microsoft/mk/remove-validation-rule
MaggieKimani1 Oct 29, 2024
924ff0d
Merge remote-tracking branch 'origin/release/2.0.0' into mk/define-js…
MaggieKimani1 Oct 29, 2024
56c47cb
Remove JsonSchemaType.Any type
MaggieKimani1 Oct 29, 2024
5af79d4
Add condition to check whether the flag matches the type before appen…
MaggieKimani1 Oct 30, 2024
e12301c
Add test for sample document with 3.1 features
MaggieKimani1 Oct 30, 2024
e13fb01
throw OpenApiException for it to be caught gracefully and appended to…
MaggieKimani1 Oct 30, 2024
2e2ad57
Fix string formatting
MaggieKimani1 Oct 30, 2024
656259a
Fix failing tests
MaggieKimani1 Oct 30, 2024
07987ae
Update src/Microsoft.OpenApi/Models/OpenApiSchema.cs
MaggieKimani1 Oct 30, 2024
3abe36c
Convert the JsonSchemaType helper methods to extensions
MaggieKimani1 Oct 30, 2024
38954dc
Add null check for type; simplify condition to verify flag has been set
MaggieKimani1 Oct 30, 2024
b806323
Clean up tests
MaggieKimani1 Oct 30, 2024
5eb0010
Add null check
MaggieKimani1 Oct 30, 2024
6d34a77
chore(deps): bump Verify.Xunit from 27.1.0 to 28.0.0
dependabot[bot] Oct 30, 2024
46b18cd
Merge pull request #1900 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Oct 31, 2024
bf4a9ea
Merge pull request #1897 from microsoft/mk/define-json-schema-type-as…
MaggieKimani1 Oct 31, 2024
3c597ea
Merge branch 'vnext' into mk/sync-vnext-changes
MaggieKimani1 Nov 4, 2024
b490348
update file path to moved file
MaggieKimani1 Nov 4, 2024
5bbb344
Merge pull request #1903 from microsoft/mk/sync-vnext-changes
MaggieKimani1 Nov 4, 2024
7f4f935
Merge pull request #1904 from microsoft/release/2.0.0
MaggieKimani1 Nov 5, 2024
0c91327
Bump hidi version
MaggieKimani1 Nov 6, 2024
e9ab441
Update comment
MaggieKimani1 Nov 6, 2024
766f217
Merge pull request #1907 from microsoft/mk/bump-up-hidi
MaggieKimani1 Nov 7, 2024
b2b5ec3
chore(deps): bump Microsoft.OData.Edm from 8.1.0 to 8.2.0
dependabot[bot] Nov 8, 2024
82f4f70
chore(deps): bump FluentAssertions from 6.12.1 to 6.12.2 (#1910)
dependabot[bot] Nov 10, 2024
149c660
Merge pull request #1909 from microsoft/dependabot/nuget/Microsoft.OD…
baywet Nov 10, 2024
8a190f1
chore(deps): bump Verify.Xunit from 28.0.0 to 28.2.0 (#1912)
dependabot[bot] Nov 11, 2024
39d8c29
Merge branch 'vnext' into feature/3-0-4
baywet Nov 12, 2024
a4ac872
fix: failing unit test after merge
baywet Nov 12, 2024
9af3731
Merge pull request #1823 from microsoft/feature/3-0-4
baywet Nov 12, 2024
9e8d8a4
feat: bumps target OAS version to 3.1.1
baywet Oct 24, 2024
dc5de44
Merge pull request #1894 from microsoft/feature/3.1.1
baywet Nov 12, 2024
ca4bfc7
Bump up lib and hidi versions
MaggieKimani1 Nov 12, 2024
cb5bb27
Merge pull request #1913 from microsoft/mk/version-bump
MaggieKimani1 Nov 12, 2024
bd9622e
fix: multiple performance fixes for type serialization
baywet Nov 12, 2024
ba81e37
chore(deps): bump Microsoft.Extensions.Logging.Abstractions
dependabot[bot] Nov 12, 2024
0ab2350
chore(deps): bump System.Text.Json from 8.0.5 to 9.0.0 (#1920)
dependabot[bot] Nov 13, 2024
d5b11ea
chore(deps): bump System.Formats.Asn1 and Microsoft.Windows.Compatibi…
dependabot[bot] Nov 13, 2024
17f36c6
Merge pull request #1919 from microsoft/dependabot/nuget/Microsoft.Ex…
baywet Nov 13, 2024
5fef51c
Merge pull request #1915 from microsoft/fix/performance-type-serializ…
baywet Nov 13, 2024
d9fccee
chore(deps): bump Verify.Xunit from 28.2.0 to 28.2.1
dependabot[bot] Nov 13, 2024
243d680
chore(deps): bump Microsoft.Extensions.Logging and Microsoft.Extensio…
dependabot[bot] Nov 13, 2024
342e643
chore(deps): bump Microsoft.OData.Edm from 8.2.0 to 8.2.1
dependabot[bot] Nov 13, 2024
b5ebf59
chore(deps): bump Microsoft.VisualStudio.Threading.Analyzers
dependabot[bot] Nov 13, 2024
34c97e4
Merge pull request #1925 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Nov 14, 2024
3d2681e
Merge pull request #1928 from microsoft/dependabot/nuget/Microsoft.Vi…
baywet Nov 14, 2024
a64718b
Merge pull request #1926 from microsoft/dependabot/nuget/multi-fd6639…
andrueastman Nov 14, 2024
863faee
Merge pull request #1927 from microsoft/dependabot/nuget/Microsoft.OD…
baywet Nov 14, 2024
3ca0672
chore: removes newtonsoft dependency all together
baywet Nov 14, 2024
a92dfe7
Merge pull request #1931 from microsoft/chore/newtonsoft-removal
baywet Nov 14, 2024
36752ad
chore(deps): bump Microsoft.Extensions.Logging, Microsoft.Extensions.…
dependabot[bot] Nov 14, 2024
a44e789
chore(deps): bump Verify.Xunit from 28.2.1 to 28.3.1
dependabot[bot] Nov 15, 2024
e1eafea
Fix link to OpenAPI specification
mikekistler Nov 17, 2024
83c571a
Merge pull request #1936 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Nov 18, 2024
f243300
Merge pull request #1938 from mikekistler/mdk/fix-spec-link
andrueastman Nov 18, 2024
0cab0e7
Clean up tags serialization logic
MaggieKimani1 Nov 18, 2024
5a51460
Add test to validate
MaggieKimani1 Nov 18, 2024
262acd4
chore(deps): bump Verify.Xunit from 28.3.1 to 28.3.2
dependabot[bot] Nov 18, 2024
0bf5a42
Merge pull request #1941 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Nov 19, 2024
6615079
Use range for STJ reference and suppress warnings
MaggieKimani1 Nov 19, 2024
c98ca28
Revert change for hidi
MaggieKimani1 Nov 19, 2024
b0a0e8e
Add const keyword and serialization logic
MaggieKimani1 Nov 19, 2024
067fbdd
Deserialize const keyword
MaggieKimani1 Nov 19, 2024
70c7d43
Add test and update API
MaggieKimani1 Nov 19, 2024
2630ebb
chore(deps): bump Microsoft.OData.Edm from 8.2.1 to 8.2.2
dependabot[bot] Nov 19, 2024
36bc990
chore(deps): bump Microsoft.NET.Test.Sdk from 17.11.1 to 17.12.0
dependabot[bot] Nov 19, 2024
537f964
Merge pull request #1944 from microsoft/dependabot/nuget/Microsoft.OD…
baywet Nov 19, 2024
687fa87
Merge pull request #1945 from microsoft/dependabot/nuget/Microsoft.NE…
baywet Nov 19, 2024
1338905
Merge pull request #1942 from microsoft/mk/add-range-for-STJ-reference
MaggieKimani1 Nov 20, 2024
12ee205
refactor to use backing fields
MaggieKimani1 Nov 20, 2024
c1d831f
Clean up tests
MaggieKimani1 Nov 20, 2024
03edbc9
Allow empty paths object as valid
MaggieKimani1 Nov 25, 2024
1af4f13
Add test to validate; clean up tests
MaggieKimani1 Nov 25, 2024
cbc99c1
Use the selected format label
MaggieKimani1 Nov 25, 2024
9b237c6
Suppress warnings
MaggieKimani1 Nov 25, 2024
171241e
make property and method static
MaggieKimani1 Nov 25, 2024
506ef1f
clean up code
MaggieKimani1 Nov 25, 2024
5ceb174
Merge pull request #1956 from microsoft/mk/fix-workbench-format-bug
MaggieKimani1 Nov 26, 2024
98b01e0
Merge pull request #1943 from microsoft/mk/add-json-schema-const-keyword
MaggieKimani1 Nov 26, 2024
6a830b8
Merge remote-tracking branch 'origin/vnext' into mk/fix-empty-paths-f…
MaggieKimani1 Nov 26, 2024
e6ab1cd
Merge pull request #1955 from microsoft/mk/fix-empty-paths-failing
MaggieKimani1 Nov 26, 2024
f0f0a05
Merge remote-tracking branch 'origin/vnext' into mk/fix-tags-serializ…
MaggieKimani1 Nov 26, 2024
fe77796
chore(deps): bump Verify.Xunit from 28.3.2 to 28.4.0
dependabot[bot] Nov 28, 2024
3ae2f91
Merge pull request #1976 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Dec 2, 2024
36df13d
chore(deps): bump docker/build-push-action from 6.9.0 to 6.10.0
dependabot[bot] Dec 2, 2024
f64202b
Merge pull request #1977 from microsoft/dependabot/github_actions/doc…
andrueastman Dec 3, 2024
76d581b
Adds required pipeline metadata
MaggieKimani1 Dec 3, 2024
7f6432f
Merge pull request #1978 from microsoft/mk/add-security-metadata
MaggieKimani1 Dec 3, 2024
ef765f1
chore(deps): bump FluentAssertions from 6.12.2 to 7.0.0
dependabot[bot] Dec 3, 2024
47bf1eb
Merge pull request #1979 from microsoft/dependabot/nuget/FluentAssert…
andrueastman Dec 4, 2024
f1ec813
Rename Read Result properties
MaggieKimani1 Dec 9, 2024
07237af
Implement serialization and deserialization logic for unrecognized JS…
MaggieKimani1 Dec 10, 2024
e3310f5
Rename method
MaggieKimani1 Dec 10, 2024
208d0fd
Add tests to validate
MaggieKimani1 Dec 10, 2024
b91c13e
Clean up
MaggieKimani1 Dec 10, 2024
d7064c4
Remove code smells
MaggieKimani1 Dec 11, 2024
f27415d
Reduce redundancy and use LINQ statement
MaggieKimani1 Dec 11, 2024
4bc34b1
chore(deps): bump PublicApiGenerator from 11.1.0 to 11.2.0
dependabot[bot] Dec 11, 2024
1caaaaa
chore(deps): bump Microsoft.OData.Edm from 8.2.2 to 8.2.3
dependabot[bot] Dec 12, 2024
1beb8af
Merge pull request #1986 from microsoft/dependabot/nuget/Microsoft.OD…
baywet Dec 13, 2024
bea3b4f
Merge pull request #1984 from microsoft/dependabot/nuget/PublicApiGen…
andrueastman Dec 13, 2024
7e9b952
Bump preview versions
MaggieKimani1 Dec 13, 2024
bd29345
Merge pull request #1988 from microsoft/mk/bump-preview-version
MaggieKimani1 Dec 13, 2024
b1265fc
chore(deps): bump Verify.Xunit from 28.4.0 to 28.5.0
dependabot[bot] Dec 13, 2024
06767a2
Merge pull request #1990 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Dec 16, 2024
f0ac82d
chore(deps): bump xunit.runner.visualstudio from 2.8.2 to 3.0.0
dependabot[bot] Dec 16, 2024
7db6469
Merge pull request #1992 from microsoft/dependabot/nuget/xunit.runner…
andrueastman Dec 17, 2024
7556ba5
Merge pull request #1939 from microsoft/mk/fix-tags-serialization
MaggieKimani1 Dec 17, 2024
5e9bb19
chore(deps): bump Verify.Xunit from 28.5.0 to 28.6.0
dependabot[bot] Dec 17, 2024
5c958f8
chore(deps): bump PublicApiGenerator from 11.2.0 to 11.3.0
dependabot[bot] Dec 17, 2024
7df6194
Merge pull request #1994 from microsoft/dependabot/nuget/PublicApiGen…
andrueastman Dec 18, 2024
d9a2481
Merge pull request #1993 from microsoft/dependabot/nuget/Verify.Xunit…
andrueastman Dec 18, 2024
8305982
chore: adds baywet to code owners
baywet Dec 19, 2024
97f125d
Merge pull request #1996 from microsoft/chore/baywet-code-owner
baywet Dec 19, 2024
6899424
Merge pull request #1981 from microsoft/mk/rename-read-result-props
MaggieKimani1 Dec 19, 2024
09158e2
chore: uses backing fields
baywet Dec 19, 2024
7d297be
chore: code linting
baywet Dec 19, 2024
146b44f
Update src/Microsoft.OpenApi/Reader/V31/OpenApiSchemaDeserializer.cs
baywet Dec 19, 2024
7be32fc
Revert "Update src/Microsoft.OpenApi/Reader/V31/OpenApiSchemaDeserial…
baywet Dec 19, 2024
2443fa0
fix: missing property rename
baywet Dec 19, 2024
8bf3fbe
Merge pull request #1982 from microsoft/mk/support-unrecognized-keywords
baywet Dec 19, 2024
4f55597
chore: exposes unused property so consumers can read the information
baywet Dec 19, 2024
b00b557
chore: aligns parameter names with base definition
baywet Dec 19, 2024
f9f7766
chore: aligns parameter names
baywet Dec 19, 2024
a72c5c2
chore: linting
baywet Dec 19, 2024
b9ef21d
chore: removes conflicting overload
baywet Dec 19, 2024
84e83f4
chore: reduces loops
baywet Dec 19, 2024
4f28b65
fix: extensions collection initialization
baywet Dec 19, 2024
778184f
fix: restores default constructor for ISerializable implementation
baywet Dec 19, 2024
e86df13
chore: makes regex internal
baywet Dec 19, 2024
28b226e
Merge pull request #1997 from microsoft/chore/linting
baywet Dec 19, 2024
329df70
chore: fixes extraneous master references
baywet Dec 19, 2024
8999336
fix: sets hidi version to a preview
baywet Dec 19, 2024
975b1bf
Merge pull request #2000 from microsoft/fix/hidi-preview
baywet Dec 19, 2024
fbe390b
Merge pull request #1999 from microsoft/chore/master-linting
baywet Dec 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
416 changes: 306 additions & 110 deletions .azure-pipelines/ci-build.yml

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions .config/1espt/PipelineAutobaseliningConfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.

pipelines:
107:
usedNonDefaultBranch: true
retail:
source:
credscan:
lastModifiedDate: 2024-09-13
eslint:
lastModifiedDate: 2024-09-13
psscriptanalyzer:
lastModifiedDate: 2024-09-13
armory:
lastModifiedDate: 2024-09-13
13 changes: 12 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ csharp_prefer_braces = true:silent
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_prefer_simple_default_expression = true:suggestion
csharp_style_pattern_local_over_anonymous_function = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_inlined_variable_declaration = true:error
###############################
# C# Formatting Rules #
###############################
Expand Down Expand Up @@ -121,3 +121,14 @@ csharp_preserve_single_line_blocks = true
[*.vb]
# Modifier preferences
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion


# Verify settings
[*.{received,verified}.{txt,xml,json}]
charset = "utf-8-bom"
end_of_line = lf
indent_size = unset
indent_style = unset
insert_final_newline = false
tab_width = unset
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

# VerifyTests
*.verified.txt text eol=lf working-tree-encoding=UTF-8
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @irvinesunday @darrelmiller @gavinbarron @millicentachieng @MaggieKimani1 @andrueastman @baywet
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**OpenApi File To Reproduce**
Add the OpenApi file you're using or a link to it as well as the steps to reproduce the current behavior.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots/Code Snippets**
If applicable, add screenshots of the stack trace or a code snippet to help explain your problem.
If applicable, add a link to your project

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
32 changes: 32 additions & 0 deletions .github/workflows/auto-merge-dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Auto-merge dependabot updates

on:
pull_request:
branches: [ main ]

permissions:
pull-requests: write
contents: write

jobs:

dependabot-merge:

runs-on: ubuntu-latest

if: ${{ github.actor == 'dependabot[bot]' }}

steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2.2.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Enable auto-merge for Dependabot PRs
# Only if version bump is not a major version change
if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
90 changes: 9 additions & 81 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: CI/CD Pipeline

on: [push, pull_request, workflow_dispatch]

permissions:
contents: write

jobs:
ci:
name: Continuous Integration
Expand All @@ -14,9 +17,9 @@ jobs:
GITHUB_RUN_NUMBER: ${{ github.run_number }}
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 5.0.x
dotnet-version: 8.0.x

- name: Data gatherer
id: data_gatherer
Expand All @@ -41,15 +44,15 @@ jobs:

- name: Checkout repository
id: checkout_repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0

- if: steps.conditionals_handler.outputs.is_default_branch == 'true'
name: Bump GH tag
id: tag_generator
uses: mathieudutour/github-tag-action@v5.4
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: false
Expand All @@ -59,85 +62,10 @@ jobs:
id: build_projects
shell: pwsh
run: |
$projectsArray = @(
'.\src\Microsoft.OpenApi\Microsoft.OpenApi.csproj',
'.\src\Microsoft.OpenApi.Readers\Microsoft.OpenApi.Readers.csproj',
'.\src\Microsoft.OpenApi.Tool\Microsoft.OpenApi.Tool.csproj'
)
$gitNewVersion = if ("${{ steps.tag_generator.outputs.new_version }}") {"${{ steps.tag_generator.outputs.new_version }}"} else {$null}
$projectCurrentVersion = ([xml](Get-Content .\src\Microsoft.OpenApi\Microsoft.OpenApi.csproj)).Project.PropertyGroup.Version
$projectNewVersion = $gitNewVersion ?? $projectCurrentVersion

$projectsArray | ForEach-Object {
dotnet build $PSItem `
-c Release # `
# -o $env:ARTIFACTS_FOLDER `
# /p:Version=$projectNewVersion
}

# Move NuGet packages to separate folder for pipeline convenience
# New-Item Artifacts/NuGet -ItemType Directory
# Get-ChildItem Artifacts/*.nupkg | Move-Item -Destination "Artifacts/NuGet"
dotnet build Microsoft.OpenApi.sln -c Release

- name: Run unit tests
id: run_unit_tests
shell: pwsh
run: |
$testProjectsArray = @(
'.\test\Microsoft.OpenApi.Tests\Microsoft.OpenApi.Tests.csproj',
'.\test\Microsoft.OpenApi.Readers.Tests\Microsoft.OpenApi.Readers.Tests.csproj',
'.\test\Microsoft.OpenApi.SmokeTests\Microsoft.OpenApi.SmokeTests.csproj'
)

$testProjectsArray | ForEach-Object {
dotnet test $PSItem `
-c Release
}

# - if: steps.tag_generator.outputs.new_version != ''
# name: Upload NuGet packages as artifacts
# id: ul_packages_artifact
# uses: actions/upload-artifact@v1
# with:
# name: NuGet packages
# path: Artifacts/NuGet/

cd:
if: needs.ci.outputs.is_default_branch == 'true' && needs.ci.outputs.latest_version != ''
name: Continuous Deployment
needs: ci
runs-on: ubuntu-latest
steps:
# - name: Download and extract NuGet packages
# id: dl_packages_artifact
# uses: actions/download-artifact@v2
# with:
# name: NuGet packages
# path: NuGet/

# - name: Push NuGet packages to NuGet.org
# id: push_nuget_packages
# continue-on-error: true
# shell: pwsh
# run: |
# Get-ChildItem NuGet/*.nupkg | ForEach-Object {
# nuget push $PSItem `
# -ApiKey $env:NUGET_API_KEY `
# -Source https://api.nuget.org/v3/index.json
# }
# env:
# NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

- name: Create and publish release
id: create_release
uses: softprops/action-gh-release@v1
with:
name: OpenApi v${{ needs.ci.outputs.latest_version }}
tag_name: v${{ needs.ci.outputs.latest_version }}
# files: |
# NuGet/Microsoft.OpenApi.${{ needs.ci.outputs.latest_version }}.nupkg
# NuGet/Microsoft.OpenApi.Readers.${{ needs.ci.outputs.latest_version }}.nupkg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)
dotnet test Microsoft.OpenApi.sln -c Release -v n
18 changes: 12 additions & 6 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,33 @@ name: CodeQL Analysis

on:
push:
branches: [ vnext ]
pull_request:
schedule:
- cron: '0 8 * * *'

permissions:
contents: read # these permissions are required to run the codeql analysis
actions: read
security-events: write

jobs:
analyze:
name: CodeQL Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout repository
id: checkout_repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 5.0.x
dotnet-version: 8.0.x

- name: Initialize CodeQL
id: init_codeql
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
queries: security-and-quality

Expand All @@ -33,7 +39,7 @@ jobs:
$projectsArray = @(
'.\src\Microsoft.OpenApi\Microsoft.OpenApi.csproj',
'.\src\Microsoft.OpenApi.Readers\Microsoft.OpenApi.Readers.csproj',
'.\src\Microsoft.OpenApi.Tool\Microsoft.OpenApi.Tool.csproj'
'.\src\Microsoft.OpenApi.Hidi\Microsoft.OpenApi.Hidi.csproj'
)

$projectsArray | ForEach-Object {
Expand All @@ -42,6 +48,6 @@ jobs:

- name: Perform CodeQL Analysis
id: analyze_codeql
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3

# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)
42 changes: 42 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish Docker image
on:
workflow_dispatch:
push:
branches: [master, vnext]
paths: ['src/Microsoft.OpenApi.Hidi/**', '.github/workflows/**']
env:
REGISTRY: msgraphprod.azurecr.io
IMAGE_NAME: public/openapi/hidi
jobs:
push_to_registry:
environment:
name: acr
name: Push Docker image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Login to GitHub package feed
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
registry: ${{ env.REGISTRY }}
- run: |
$content = [XML](Get-Content ./src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj)
$version = $content.Project.PropertyGroup.Version
echo "::set-output name=version::${version}"
shell: pwsh
id: getversion
- name: Push to GitHub Packages - Nightly
if: ${{ github.ref == 'refs/heads/vnext' }}
uses: docker/build-push-action@v6.10.0
with:
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly
- name: Push to GitHub Packages - Release
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/build-push-action@v6.10.0
with:
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.getversion.outputs.version }}
Loading