-
Notifications
You must be signed in to change notification settings - Fork 76
Add PowerPlatformSpecGeneratorPlugin and configuration schema #1184
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
base: main
Are you sure you want to change the base?
Conversation
- Implemented the PowerPlatformSpecGeneratorPlugin to generate OpenAPI specifications from recorded requests. - Added configuration options including inclusion of OPTIONS requests, specification format (JSON/YAML), and contact/connector metadata. - Created a JSON schema for validating the plugin's configuration settings.
@dotnet-policy-service agree |
@dotnet-policy-service agree |
Thanks for the PR! As we're still working on this, let me mark it as draft so that we don't merge it while it's still in progress |
Rather than duplicating the logic, we can build on top of the existing plugin and add post-processing of the generated spec. For example, we could add a new virtual method right before this line:
Before we store the path item, we run some extra logic on it, and only then add it. Let's see if this is granular enough for our needs or if we'd need to introduce hooks further down the hierarchy. For reference: we use a similar approach in the MockResponsePlugin where we have two virtual methods dev-proxy/dev-proxy-plugins/Mocks/MockResponsePlugin.cs Lines 294 to 308 in 4587a22
|
Here is my initial draft for a Power Platform Plugin. It needs to be implemented better either through post processing or inheritance from the OpenAPI plugin but wanted to overriding the OpenAPI plugin to shows the differences between a normal OpenAPI file and a Power Platform formatted OpenAPI file. Will need some feedback.
#1183