Skip to content

Document validation errors do not display by default #1588

Closed
@DavidBiesack

Description

I installed the binary for macos from https://github.com/microsoft/kiota/releases/download/v0.1.3/linux-x64.zip
(expand the zip into ~/lib/kiota) and ran:

$ ~/lib/kiota/kiota -d openapi.yaml -l typescript -o gen/sdk/client

(I also approved the binary download in my macos settings).

This creates the gen/sdk/client directory but nothing else. openapi.yaml is a valid OpenAPI 3.1 source.

I'd like to try this tool with OpenAPI 3.1

Only when I turned on trace log level do I get:

$ ~/lib/kiota/kiota --loglevel trace -d openapi.yaml -l typescript -o gen/sdk/client
...
crit: Kiota.Builder.KiotaBuilder[0]
      error generating the SDK: OpenAPI specification version '3.1.0' is not supported.

Note: Since this is not just a Trace message but a Critical message, it should be printed by default (default log level Warning) without having to use --loglevel trace

Metadata

Assignees

Labels

fixedgeneratorIssues or improvements relater to generation capabilities.type:bugA broken experience

Type

No type

Projects

  • Status

    Done ✔️

Relationships

None yet

Development

No branches or pull requests

Issue actions