Azure / Azure/azure-functions-openapi-extension

Please allow to provide OpenApiDocument via configuration

Open
#558 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
388
Forks
202
PR merge metrics
No merged PRs in 30d

Description

Please allow to provide `OpenApiDocument` via configuration and not by generating from `OpenApiOperation` attributes

**Additional context**
We are generating `HttpTrigger` functions from existing document. I tried to register my custom `IOpenApiHttpTriggerContext` implementation to return `IDocument` as `new Document(GetDocFromResource())`, but `IOpenApiHttpTriggerContext` is resolved as original one.
Thanks

Contributor guide

Open the contributing guide

Research direction

Start by tracing how IOpenApiHttpTriggerContext is registered and resolved, then inspect how Document is created from OpenApiOperation attributes. Verify how a configured OpenApiDocument or IDocument could be selected instead, and define done as the custom document being used for generated HttpTrigger functions.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, openapi
Domain
api, backend, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.