-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe negated shortcut content types #1120
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure, I got your example right.
The spec says:
The document is considered acceptable if and only if it matches at least one acceptable content type and the last content type that matched was not forbidden.
Now consider a port defined with "-xml". A document marked with "text/plain" should be accepted, but: It does not match any acceptable content type.
What do I miss?
Additionally I think we need to say something about "-any": Is it any error or is it simply ignored? Or is it a new feature to make sure, NO document is supplied on a sequence port?
Maybe we need to say that if the list only expands to exclusions, |
It's an interesting question. I think that just "doesn't match at least one acceptable type". Just saying
|
There are already ways to make a port that doesn't accept any documents, I don't think we have to call attention to |
@ndw Ah, ok! I obviously missed the main point. Now your proposal makes totally sense to me. Lets see how often forget about this point when writing pipelines. |
Fix #1115
Note how I've proposed to handle negation of exclusions.