Skip to content

[Feature Request] Add an option to set your own descriptor resolver #162

@rauanmayemir

Description

@rauanmayemir

Feature description:

Similar to WithExtensionTypeResolver, it would be helpful to allow adding your own WithDescriptorResolver option.

Problem it solves or use case:

It will allow using dynamic schema registries outside of global protoregistry.Files

Proposed implementation or solution:

Something like:

func WithDescriptors(resolver ...protodesc.Resolver) ValidatorOption {
  return func(cfg *config) {
    cfg.descResolver = resolver
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions