Skip to content

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

@fellnerse

Description

@fellnerse

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.

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions