Skip to content

Conversation

@seal90
Copy link

@seal90 seal90 commented Nov 1, 2025

Description

Add a new name resolution method: structuredformat.
Service invocation can be configured with just a simple text-based configuration.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[4084]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

Note: We expect contributors to open a corresponding documentation PR in the dapr/docs repository. As the implementer, you are the best person to document your work! Implementation PRs will not be merged until the documentation PR is opened and ready for review.

@seal90 seal90 requested review from a team as code owners November 1, 2025 09:57
Copy link
Member

@mikeee mikeee left a comment

Choose a reason for hiding this comment

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

Looking good to me, could you please open up a docs PR?

Cheers!

@mikeee mikeee linked an issue Nov 27, 2025 that may be closed by this pull request
@seal90
Copy link
Author

seal90 commented Nov 27, 2025

Will do — I’ll open a docs PR .

Cheers!

@seal90
Copy link
Author

seal90 commented Dec 6, 2025

I've opened the docs PR — thanks for the review!

Copy link
Contributor

@sicoyle sicoyle left a comment

Choose a reason for hiding this comment

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

few comments so far. Can you also look at all the struct fields added and make them unexported by default where applicable please? Thank you for your contribution!! 🙌

IPV4 string `json:"ipv4" yaml:"ipv4"`
IPV6 string `json:"ipv6" yaml:"ipv6"`
Port int `json:"port" yaml:"port"`
ExtendedInfo map[string]string `json:"extendedInfo" yaml:"extendedInfo"`
Copy link
Contributor

Choose a reason for hiding this comment

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

what do you intend extendedInfo to be used for? If we don't use it then can you pls rm it here?

Comment on lines +59 to +63
type structuredFormatMetadata struct {
StructuredType string
StringValue string
FilePath string
}
Copy link
Contributor

Choose a reason for hiding this comment

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

can you pls add a metadata.yaml file denoting which fields are required, defaults set, etc. You can reference the other components metadata.yaml files for this :)

Copy link
Contributor

Choose a reason for hiding this comment

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

I read the docs PR and these fields seem different to me unless I am missing something. Can you please confirm they match after you make your updates 🙏 Also, please note that in the metadata.yaml file there is an allowedValues key you can specify to denote the diff options (ie yaml or json)

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.

Add a new name resolution method: structuredformat

3 participants