quarkus
                                
                                 quarkus copied to clipboard
                                
                                    quarkus copied to clipboard
                            
                            
                            
                        Funqy Knative Events - EventAttribute is not documented
Description
There is not a single reference of @EventAttribute in documentation and JavaDoc is terse: If there is an extra requirement to match against cloud event attributes to find the function to be triggered Documentation should provide a usage example and cover (among others) following:
- Can I define custom CloudEvent attribute or just standard attributes?
- Show my how I can curlthis (that's prefix the attribute withce-even custom one)
- Is there logical ANDorORbetween@EventAttributes?
- What happens when there is more than one function with same trigger and filter (attributes)? Is it allowed?
- Allowed characters for EventAttribute name, as when I use dashes there, result is always bad request, f.e. @EventAttribute(name = "not-matched-name", value = "not-matched-value")won't get matched for headerce-not-matched-name: not-matched-valuebut it's camel case equivalent does.
WithAttributeFilterTest.java provides answers, but it's not user-friendly to infer expected behavior from 17 tests (and there are tests covering conflicts and duplicity).
Implementation ideas
No response
/cc @geoand, @iocanel, @matejvasek, @patriot1burke
I don't seem to find time to do this and there was no user requests so closing.