Skip to content

Conversation

@Expecho
Copy link
Contributor

@Expecho Expecho commented Sep 19, 2025

The examples show a wrong value for specifying the OpenApi version. Using the examples I got this error:

crit: Microsoft.OpenApi.Hidi.Handlers.TransformCommandHandler[0]
Could not transform the document, reason: Invalid version format. Please provide a valid OpenAPI version (e.g., 2.0, 3.0, 3.1).
PS Z:\Sources\dotnet10\ai> hidi transform -d .\openapi.yaml -f yaml -o .\openapi-trimmed.yaml -v OpenApi3_0 --op users.user.calendar.getSchedule,places.place.ListPlace.AsRoom --co

It took me a while before I figured out I need to use the major minor syntax, so -v OpenApi3_0 must be changed to -v 3.0 to get the examples working.

@Expecho Expecho requested a review from a team as a code owner September 19, 2025 11:46
@Expecho Expecho changed the title Fixed wrong examples in readme.md Fix wrong version specification in hidi examples in readme.md Sep 19, 2025
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@baywet baywet enabled auto-merge (squash) September 19, 2025 12:20
@baywet baywet merged commit 292b8ed into microsoft:main Sep 19, 2025
9 checks passed
@Expecho Expecho deleted the patch-1 branch September 19, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants