VOOZH about

URL: https://www.nuget.org/packages/Microsoft.OpenApi.Hidi/

⇱ NuGet Gallery | Microsoft.OpenApi.Hidi 3.7.0




👁 Image
Microsoft.OpenApi.Hidi 3.7.0

Prefix Reserved
dotnet tool install --global Microsoft.OpenApi.Hidi --version 3.7.0
 
 
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
 
if you are setting up this repo
dotnet tool install --local Microsoft.OpenApi.Hidi --version 3.7.0
 
 
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Microsoft.OpenApi.Hidi&version=3.7.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Microsoft.OpenApi.Hidi --version 3.7.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Overview

Hidi is a command line tool that makes it easy to work with and transform OpenAPI documents. The tool enables you validate and apply transformations to and from different file formats using various commands to do different actions on the files.

Capabilities

Hidi has these key capabilities that enable you to build different scenarios off the tool

• Validation of OpenAPI files 
• Conversion of OpenAPI files into different file formats: convert files from JSON to YAML, YAML to JSON
• Slice or filter OpenAPI documents to smaller subsets using operationIDs and tags
• Generate a Mermaid diagram of the API from an OpenAPI document

Installation

Install Microsoft.OpenApi.Hidi package from NuGet by running the following command:

.NET CLI(Global)

dotnet tool install --global Microsoft.OpenApi.Hidi --prerelease

.NET CLI(local)

dotnet new tool-manifest #if you are setting up the OpenAPI.NET repo 
dotnet tool install --local Microsoft.OpenApi.Hidi --prerelease 

Docker

Hidi is also available as a Docker image:

docker pull mcr.microsoft.com/openapi/hidi

How to use Hidi

Once you've installed the package locally, you can invoke the Hidi by running: hidi [command]. You can access the list of command options we have by running hidi -h The tool avails the following commands:

• Validate 
• Transform 
• Show
 

Validate

This command option accepts an OpenAPI document as an input parameter, visits multiple OpenAPI elements within the document and returns statistics count report on the following elements:

• Path Items 
• Operations 
• Parameters 
• Request bodies 
• Responses 
• Links 
• Callbacks 
• Schemas 
 

It accepts the following command:

• --openapi(-d) - OpenAPI description file path or URL 
• --loglevel(-ll) - The log level to use when logging messages to the main output 
 
Example:
hidi validate --openapi C:\OpenApidocs\Mail.yml --loglevel trace` 

Run hidi validate -h to see the options available.

Transform

Used to convert file formats from JSON to YAML and vice versa and performs slicing of OpenAPI documents.

This command accepts the following parameters:

• --openapi, (-d) - OpenAPI description file path in the local filesystem or a valid URL hosted on a HTTPS server 
• --csdl (--cs) - CSDL file path in the local filesystem or a valid URL hosted on a HTTPS server 
• --csdl-filter (--csf) - a filter parameter that a user can use to select a subset of a large CSDL file. They do so by providing a comma delimited list of EntitySet and Singleton names that appear in the EntityContainer. 
• --output (-o) - Output directory path for the transformed document.
• --clean-output (--co) - an optional param that allows a user to overwrite an existing file. 
• --version (-v) - OpenAPI specification version.
• --metadata-version (--mv) - the metadata version to use.
• --format (-f) - File format 
• --terse-output (--to) - Produce terse json output
• --settings-path (--sp) - The configuration file with CSDL conversion settings.
• --log-level (--ll) - The log level to use when logging messages to the main output 
• --inline-local (--il) - Inline local $ref instances 
• --inline-external (--ie) - Inline external $refs instances
• --filter-by-operationids(--op) - Slice document based on OperationId(s) provided. Accepts a comma delimited list of operation ids. 
• --filter-by-tags (--t) - Slice document based on tag(s) provided. Accepts a comma delimited list of tags. 
• --filter-by-collection (-c) - Slices the OpenAPI document based on the Postman Collection file generated by Resource Explorer 
Examples:
  1. Filtering by OperationIds
hidi transform -d files\People.yml -f yaml -o files\People.yml -v 3.0 --op users_UpdateInsights --co 
  1. Filtering by Postman collection
hidi transform --openapi files\People.yml --format yaml --output files\People2.yml --version 3.0 --filter-by-collection Graph-Collection-0017059134807617005.postman_collection.json 
  1. CSDL--->OpenAPI conversion and filtering
hidi transform --csdl Files/Todo.xml --output Files/Todo-subset.yml --format yaml --version 3.0 --filter-by-operationids Todos.Todo.UpdateTodo 
  1. CSDL Filtering by EntitySets and Singletons
hidi transform --cs dataverse.csdl --csdl-filter "appointments,opportunities" -o appointmentsAndOpportunities.yaml --ll trace 

Run hidi transform -h to see all the available usage options.

Show

This command accepts an OpenAPI document as an input parameter and generates a Markdown file that contains a diagram of the API using Mermaid syntax.

Examples:
hidi show -d files\People.yml -o People.md -ll trace

Plugin

This command generates an OpenAI style Plugin manifest and minimal OpenAPI file based on the provided API Manifest

Examples:
hidi plugin -m exampleApiManifest.yml -o mypluginfolder 

Run hidi plugin -h to see all the available usage options.

Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
3.7.0 334 6/10/2026
3.6.0 527 6/1/2026
3.5.5 250 5/29/2026
3.5.4 269 5/26/2026
3.5.3 1,688 4/27/2026
3.5.2 724 4/14/2026
3.5.1 1,982 3/31/2026
3.5.0 1,739 3/20/2026
3.4.0 1,950 3/5/2026
2.9.0 92 6/10/2026
2.8.0 104 6/1/2026
2.7.6 104 5/29/2026
2.7.5 106 5/26/2026
2.7.4 227 4/27/2026
2.7.3 230 4/14/2026
2.7.2 1,068 4/1/2026
2.7.1 1,321 3/20/2026
2.7.0 380 3/5/2026
2.6.1 7,145 1/22/2026
1.6.29 376 4/14/2026
Loading failed