Gi60s / openapi-enforcer

Apache License 2.0
94 stars 22 forks source link

missing support for security type `OpenID Connect Discovery` (openIdConnect) #115

Closed joenio closed 3 years ago

joenio commented 3 years ago
npm test test/openapi-syntax.test.js 

> risis-rcf-risor@0.1.0 test /home/joenio/src/lisis/risis-rcf-risor
> jest "test/openapi-syntax.test.js"

 FAIL  test/openapi-syntax.test.js
  OpenAPI document
    ✕ openapi.yaml file is valid (129 ms)

  ● OpenAPI document › openapi.yaml file is valid

    One or more errors exist in the OpenApi definition
      at: security > 0 > OpenID > OpenID
        Security requirement for openIdConnect value must be an empty array

But OpenAPI specs says that OpenID must not be empty array, it must be filled by the scopes in a array format.

Gi60s commented 3 years ago

Thanks for sharing this issue. I'll look into it and hopefully have a fix tomorrow.

joenio commented 3 years ago

Thank you very much @Gi60s

Gi60s commented 3 years ago

The fix has been published in version 1.14.1. Thanks again for the issue.