ory / sdk

The place where ORY's SDKs are being auto-generated
Apache License 2.0
139 stars 86 forks source link

Missing Types in Spec causing failure for Dart generated code #230

Closed AllenKaplan closed 1 year ago

AllenKaplan commented 1 year ago

Preflight checklist

Describe the bug

The following two properties are missing a type causing client v0.3 (and under) openapi generated code to fail

          "hydra_strategies_access_token": {
            "default": "opaque",
            "description": "Defines access token type. jwt is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens\n\nThis governs the \"strategies.access_token\" setting."
          },
          "hydra_strategies_scope": {
            "default": "wildcard",
            "description": "Defines how scopes are matched. For more details have a look at https://github.com/ory/fosite#scopes\n\nThis governs the \"strategies.scope\" setting."
          },

Reproducing the bug

Attempt to import existing ory client or generate the client based on spec

Relevant log output

ory_client_err

Relevant configuration

No response

Version

Client <= v0.3

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Other

Additional Context

I got the info as to why it was failing by reaching out to the OAS Dart maintainers on the OpenAPI slack #dart channel -- thread here

jonas-jonas commented 1 year ago

Hi! Thanks for the report, this does indeed seem to be a bug in our schema. It boils down to the somewhat broken generation of Enums from Go code in our swagger tool chain. The fix should be to provide a proper enum definition. We will fix this!

aeneasr commented 1 year ago

Fix was merged