Skip to content

This tool converts OpenAPI 3.0 specifications into Swagger 2.0 (OpenAPI 2.0) format while ensuring compatibility with Microsoft Power Automate. It applies necessary transformations to pass Microsoft validation checks.

Notifications You must be signed in to change notification settings

fulcrumapp/openapi-powerautomate-compat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAPI Power Automate Compatibility Tool

This tool facilitates the conversion of OpenAPI 3.0 specifications to the Swagger 2.0 (OpenAPI 2.0) format, with a focus on ensuring compatibility with Microsoft Power Automate. It applies the necessary transformations to meet Microsoft's validation requirements.

Usage Instructions

Option 1: Using Docker (Recommended)

  1. Build the Docker image:

    docker build -t openapi-powerautomate-compat .
  2. Run the Docker container: Place your OpenAPI 3.1 specification file (e.g., api-3.1.json) in the current directory.

    docker run -v "$(pwd):/app" openapi-powerautomate-compat my-api.json

    Rename your file to api-3.1.json.

Option 2: Local Execution

  • Clone this repository to your local machine.

  • Add your OpenAPI 3.1 specification to the repository root and name the file: api-3.1.json

Example:

image

  • Execute the tool using the following command:
 ./convert_openapi.sh 
  • Upon successful conversion, a confirmation message will be displayed.

  • The output file, swagger-2.0-cleaned.yaml, is the final result and should be ready for import into Microsoft Power Automate. For example:

Power Automate Import Example

About

This tool converts OpenAPI 3.0 specifications into Swagger 2.0 (OpenAPI 2.0) format while ensuring compatibility with Microsoft Power Automate. It applies necessary transformations to pass Microsoft validation checks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.6%
  • Shell 6.2%
  • Dockerfile 6.2%