compose-go icon indicating copy to clipboard operation
compose-go copied to clipboard

Check `foo` implementation do support all `x-foo-*` extension fields

Open ndeloof opened this issue 5 years ago • 0 comments

With extension field support, it's easy to add extension but also hard to report errors to user. Typically, we can't catch a typo.

I'd like we introduce a mechanism so that Compose implementation can declare extension it allows, and we can catch:

x-foo-unknown: bar

Would be awesome if such a mechanism can be used to define types, so that we don't just use interface{} for extensions.

ndeloof avatar Aug 13 '20 15:08 ndeloof