Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@loispostula
Copy link
Contributor

This allows for the client to be configured without using the discovery document

@ctron
Copy link
Owner

ctron commented Sep 10, 2025

Thanks for the PR. I think it makes sense having this.

I am not sure about the way this can be configured. Having a bunch of "optional" fields, and then (if all of them are set) using a different approach.

Maybe we can make this a bit more explicit by having an enum? Something like:

struct Config {
  source: Source,
}

enum Source {
  Discovery,
  Manual {
    auth: Url,},
}

@loispostula
Copy link
Contributor Author

That's a good idea, we could make the Discovery option the default one in order to remain backward compatible

@loispostula
Copy link
Contributor Author

@ctron Thank you for the feedback, it's way cleaner now

ctron
ctron previously approved these changes Sep 10, 2025
Copy link
Owner

@ctron ctron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@ctron ctron merged commit ae6a491 into ctron:main Sep 10, 2025
3 checks passed
@ctron
Copy link
Owner

ctron commented Sep 10, 2025

Released as 0.12.1

@loispostula loispostula deleted the client-without-metadata branch September 10, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants