-
Notifications
You must be signed in to change notification settings - Fork 199
Support dynamic OpenApiConfigurationOptions
#432
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b035471
First pass at support dynamic OpenApiConfigurationOptions.
jackbatzner 4ba1e5a
Put that back
jackbatzner 3070225
Update readme to include info on how to dynamically configure OpenApi…
jackbatzner dd24b58
Update tests
jackbatzner e1d0247
Allow proper dependency injection for IOpenApiConfigurationOptions
jackbatzner 9532164
Cleanup
jackbatzner d1181e2
Merge branch 'main' into dynamic-openapiconfig
jackbatzner 774370a
Update openapi-core.md
jackbatzner 0f3e3b6
Update comment
jackbatzner b096f0e
Merge branch 'dynamic-openapiconfig' of github.com:jackbatzner/azure-…
jackbatzner b22d8d7
Fix tests
jackbatzner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...bJobs.Extensions.OpenApi.FunctionApp.InProc/Configurations/OpenApiConfigurationOptions.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...ft.Azure.WebJobs.Extensions.OpenApi.Core/Abstractions/OpenApiHttpTriggerContextBinding.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Collections.Generic; | ||
|
||
using Microsoft.Azure.WebJobs.Extensions.Http; | ||
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Enums; | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Abstractions | ||
{ | ||
/// <summary> | ||
/// This represents the metadata entity for OpenApiHttpTrigger context binding. | ||
/// </summary> | ||
public class OpenApiHttpTriggerContextBindingMetadata | ||
{ | ||
/// <summary> | ||
/// Gets or sets the name of the binding parameter. Default value is <c>context</c>. | ||
/// </summary> | ||
[JsonRequired] | ||
[JsonProperty("name")] | ||
public virtual string Name { get; set; } = "context"; | ||
|
||
/// <summary> | ||
/// Gets or sets the binding type. Default value is <c>openApiHttpTriggerContext</c>. | ||
/// </summary> | ||
[JsonRequired] | ||
[JsonProperty("type")] | ||
public virtual string Type { get; set; } = "openApiHttpTriggerContext"; | ||
|
||
/// <summary> | ||
/// Gets or sets the binding direction. Default value is <see cref="BindingDirectionType.In"/>. | ||
/// </summary> | ||
[JsonRequired] | ||
[JsonProperty("direction")] | ||
public virtual BindingDirectionType Direction { get; set; } = BindingDirectionType.In; | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.