typesense / typesense-go

Go client for Typesense: https://github.com/typesense/typesense
Apache License 2.0
220 stars 56 forks source link

`api.ApiKeySchema` is missing the optional `Value` field for create API keys #110

Closed dbolkensteyn closed 2 years ago

dbolkensteyn commented 2 years ago

The documentation https://typesense.org/docs/0.23.1/api/api-keys.html#create-an-api-key states that a value can optionally passed when creating an API key, which will be used instead of generating a new random one.

ApiKeySchema is thus missing a Value field: https://github.com/typesense/typesense-go/blob/master/typesense/api/types_gen.go#L33

Typesense version 0.23.1

Thank you for providing this awesome Go client 🙇

kishorenc commented 2 years ago

Need to update the Open API spec and then once it's merged, need to regenerate the go types with go generate (which fetches the spec and does some go-specific tuning and then generates the types).

Happy to accept PRs, or I will have to get around to this when time permits.

kishorenc commented 2 years ago

Fixed in v0.6.0.