-
Notifications
You must be signed in to change notification settings - Fork 64
feat: upgrades OpenApi.NET to preview22 #693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
cdb20af
addb003
23919e0
7d39711
f51cf3c
39fde17
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API. | ||
# See https://redocly.com/docs/cli/ for more information. | ||
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.json: | ||
no-server-example.com: | ||
- '#/servers/0/url' | ||
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V3.1.json: | ||
no-server-example.com: | ||
- '#/servers/0/url' | ||
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.json: | ||
no-server-example.com: | ||
- '#/servers/0/url' | ||
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V3.1.json: | ||
no-server-example.com: | ||
- '#/servers/0/url' | ||
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.json: | ||
no-server-example.com: | ||
- '#/servers/0/url' | ||
struct: | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass/properties/Document/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel/properties/Document/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel/properties/Tag/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library/properties/LibraryParent/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType/properties/MasterLibraryType/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType/properties/ParentLibraryTypes/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library/properties/Type/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library/properties/SourceFolder/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document/properties/Library/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document/properties/LastRevisionFile/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document/properties/SourceDocument/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Revision.Revision/properties/Document/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.App.DTO.RevisionDto/properties/Document/anyOf/1/nullable | ||
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V3.1.json: | ||
no-server-example.com: | ||
- '#/servers/0/url' | ||
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.json: | ||
struct: | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location/properties/City/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person/properties/HomeAddress/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person/properties/BestFriend/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation/allOf/1/properties/EmergencyAuthority/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport/properties/Location/anyOf/1/nullable | ||
- >- | ||
#/paths/~1GetNearestAirport(lat={lat},lon={lon})/get/responses/200/content/application~1json/schema/anyOf/1/nullable | ||
- >- | ||
#/paths/~1GetPersonWithMostFriends()/get/responses/200/content/application~1json/schema/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/allOf/1/properties/BossOffice/anyOf/1/nullable | ||
- >- | ||
#/components/responses/GetFavoriteAirlineResponse/content/application~1json/schema/anyOf/1/nullable | ||
- >- | ||
#/paths/~1Me~1Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager~1Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire/post/requestBody/content/application~1json/schema/properties/hire/anyOf/1/nullable | ||
- >- | ||
#/paths/~1NewComePeople~1{UserName}~1Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager~1Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire/post/requestBody/content/application~1json/schema/properties/hire/anyOf/1/nullable | ||
- >- | ||
#/paths/~1People~1{UserName}~1Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager~1Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire/post/requestBody/content/application~1json/schema/properties/hire/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Event/allOf/1/properties/OccursAt/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight/allOf/1/properties/Airline/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight/allOf/1/properties/From/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight/allOf/1/properties/To/anyOf/1/nullable | ||
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.V3.1.yaml: | ||
no-server-example.com: | ||
- '#/servers/0/url' | ||
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Basic.OpenApi.yaml: | ||
no-server-example.com: | ||
- '#/servers/0/url' | ||
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.V3.1.yaml: | ||
no-server-example.com: | ||
- '#/servers/0/url' | ||
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Empty.OpenApi.yaml: | ||
no-server-example.com: | ||
- '#/servers/0/url' | ||
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.V3.1.yaml: | ||
no-server-example.com: | ||
- '#/servers/0/url' | ||
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/Multiple.Schema.OpenApi.yaml: | ||
no-server-example.com: | ||
- '#/servers/0/url' | ||
struct: | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentClass/properties/Document/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel/properties/Document/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.DocumentTagRel/properties/Tag/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library/properties/LibraryParent/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType/properties/MasterLibraryType/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.LibraryType/properties/ParentLibraryTypes/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library/properties/Type/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Library.Library/properties/SourceFolder/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document/properties/Library/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document/properties/LastRevisionFile/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Document.Document/properties/SourceDocument/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.BusinessLogic.Entities.Revision.Revision/properties/Document/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Siterra.Documents.App.DTO.RevisionDto/properties/Document/anyOf/1/nullable | ||
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/TripService.OpenApi.yaml: | ||
struct: | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Location/properties/City/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person/properties/HomeAddress/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person/properties/BestFriend/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation/allOf/1/properties/EmergencyAuthority/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport/properties/Location/anyOf/1/nullable | ||
- >- | ||
#/paths/~1GetNearestAirport(lat={lat},lon={lon})/get/responses/200/content/application~1json/schema/anyOf/1/nullable | ||
- >- | ||
#/paths/~1GetPersonWithMostFriends()/get/responses/200/content/application~1json/schema/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager/allOf/1/properties/BossOffice/anyOf/1/nullable | ||
- >- | ||
#/components/responses/GetFavoriteAirlineResponse/content/application~1json/schema/anyOf/1/nullable | ||
- >- | ||
#/paths/~1Me~1Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager~1Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire/post/requestBody/content/application~1json/schema/properties/hire/anyOf/1/nullable | ||
- >- | ||
#/paths/~1NewComePeople~1{UserName}~1Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager~1Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire/post/requestBody/content/application~1json/schema/properties/hire/anyOf/1/nullable | ||
- >- | ||
#/paths/~1People~1{UserName}~1Microsoft.OData.Service.Sample.TrippinInMemory.Models.Manager~1Microsoft.OData.Service.Sample.TrippinInMemory.Models.Hire/post/requestBody/content/application~1json/schema/properties/hire/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Event/allOf/1/properties/OccursAt/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight/allOf/1/properties/Airline/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight/allOf/1/properties/From/anyOf/1/nullable | ||
- >- | ||
#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.Flight/allOf/1/properties/To/anyOf/1/nullable |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,6 @@ | |
using System.Collections.Generic; | ||
using Microsoft.OData.Edm; | ||
using Microsoft.OData.Edm.Validation; | ||
using Microsoft.OpenApi.Extensions; | ||
using Microsoft.OpenApi.Interfaces; | ||
using Microsoft.OpenApi.Models; | ||
using Microsoft.OpenApi.OData.Common; | ||
using Microsoft.OpenApi.OData.Edm; | ||
using Microsoft.OpenApi.OData.Generator; | ||
|
@@ -25,7 +22,7 @@ | |
/// </summary> | ||
/// <param name="model">The Edm model.</param> | ||
/// <returns>The converted Open API document object, <see cref="OpenApiDocument"/>.</returns> | ||
public static OpenApiDocument ConvertToOpenApi(this IEdmModel model) | ||
Check warning on line 25 in src/Microsoft.OpenApi.OData.Reader/EdmModelOpenApiExtensions.cs
|
||
{ | ||
return model.ConvertToOpenApi(new OpenApiConvertSettings()); | ||
} | ||
|
@@ -36,7 +33,7 @@ | |
/// <param name="model">The Edm model.</param> | ||
/// <param name="settings">The convert settings.</param> | ||
/// <returns>The converted Open API document object, <see cref="OpenApiDocument"/>.</returns> | ||
public static OpenApiDocument ConvertToOpenApi(this IEdmModel model, OpenApiConvertSettings settings) | ||
Check warning on line 36 in src/Microsoft.OpenApi.OData.Reader/EdmModelOpenApiExtensions.cs
|
||
{ | ||
Utils.CheckArgumentNull(model, nameof(model)); | ||
Utils.CheckArgumentNull(settings, nameof(settings)); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
// ------------------------------------------------------------ | ||
|
||
using System.Collections.Generic; | ||
using Microsoft.OpenApi.Models; | ||
|
||
namespace Microsoft.OpenApi.OData.Extensions | ||
{ | ||
|
@@ -21,6 +20,6 @@ | |
/// <summary> | ||
/// The route prefix parameters. | ||
/// </summary> | ||
public IEnumerable<OpenApiParameter>? Parameters { get; } | ||
Check warning on line 23 in src/Microsoft.OpenApi.OData.Reader/Extensions/IODataRoutePathPrefixProvider.cs
|
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
// ------------------------------------------------------------ | ||
|
||
using System.Collections.Generic; | ||
using Microsoft.OpenApi.Models; | ||
|
||
namespace Microsoft.OpenApi.OData.Extensions | ||
{ | ||
|
@@ -21,6 +20,6 @@ | |
/// <summary> | ||
/// Gets/sets the associated parameters for the path prefix. | ||
/// </summary> | ||
public IEnumerable<OpenApiParameter>? Parameters { get; set; } | ||
Check warning on line 23 in src/Microsoft.OpenApi.OData.Reader/Extensions/ODataRoutePathPrefixProvider.cs
|
||
} | ||
} |
Uh oh!
There was an error while loading. Please reload this page.