Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Hidi returns exit code 0 even when failing on mac #900

Copy link
Copy link
@fellnerse

Description

@fellnerse
Issue body actions

Hello here is the log form my terminal:

bash-3.2$ hidi validate -d core/openapi.yml -ll trace
trce: Microsoft.OpenApi.Hidi.OpenApiService[0]
      => Reading input stream
      5ms: Read file core/openapi.yml
crit: Microsoft.OpenApi.Hidi.OpenApiService[0]
      OpenAPI specification version '' is not supported.
bash-3.2$ echo $?
0
bash-3.2$ hidi --version
1.0.0-preview4+b04aecd4a4955f71bc8f1a21ac74b8ac0976cb2a

The file I'm validating is just wrong for the purpose of demonstration, it starts like this:

openapiWRONG: 3.0.3
...

Do you have an idea how I can get the correct exit code? It seems like it does not even print to the stderr but everything is printed to stdout.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

priority:p2Medium. Generally has a work-around and a smaller sub-set of customers is affected. SLA <=30 daysMedium. Generally has a work-around and a smaller sub-set of customers is affected. SLA <=30 daystype:bugA broken experienceA broken experience

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.