-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Add structured fields primitive types to format registry #3390
Conversation
b1837a3
to
8cb215c
Compare
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.
De-emphasize the ABNF.
@mikekistler These look good but we should also talk about what to do with sf-list and sf-dictionary and more complex headers. /cc @handrews |
@mikekistler I'd like to propose an alternative that encompasses sf-list and sf-dictionary with a different approach. I should have the proposal up by next week's TSC meeting, although probably not in the next few days. |
@mikekistler My apologies for the extremely long delay while I dealt with health issues (and end-of-year holidays). My concern here is that we have a smooth path to full RFC 8941 in OAS 3.2, as suggested by #1980. I have some thoughts on what that might look like, although I'm still working out the details. I will add them to #1980 when I get it sorted out. Now that I'm able to work properly again, and have mostly caught up on my backlog, I expect to finish that proposal in the next week. If these are intended only for use with headers with single-item values, I might be OK with them. There will need to be some wording around how you can't just say |
@handrews My hope was to have a solution for primitive types in headers -- particularly strings -- without creating any impediments to a solution for full RFC 8941 support. Are there things in the current PR that would be an impediment to the full solution? |
@mikekistler I think I'm mostly worried about other people running wild with these, doing something unexpected, and then we get stuck having to either support that (because it's "in the wild") or annoy people by breaking something that they think ought to work. We could just add another sentence to these:
along the lines of "This format is currently only intended for use describing single-Item headers; any other usage may not be compatible with future full support for structured fields." (replacing "single-Item headers" with whatever terminology RFC 8941 mandates). That way we set boundaries around this and they don't become general-purpose formats that people start using because they're close enough to some other use case they want. Or at least they know not to expect that to work in the long run. Does that sound reasonable? |
@mikekistler ping! Do you have thoughts on the proposed resolution in my last comment? |
I'm struggling with this because it's just not clear to me that it's necessary. We don't have language like this in any of the other format registry entries. But for the sake of moving this forward, let me propose a slightly different wording that I think I could live with:
Can we compromise on this language? |
@mikekistler Yes, all I'm trying to do is ensure it's used only for the appropriate kind of structured header and not treated as a general-purpose format, and your wording does that. I wouldn't even call it a compromise- I don't much care about the wording, just the results. |
Excellent! I'll make the updates and also fix the RFC references and I think that will address all the outstanding concerns. |
I think all PR comments are addressed. Tagging reviewers for re-review. |
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.
Thanks!
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.
Thank you @mikekistler and @handrews for getting this done!
This PR adds six new formats to the format registry for the primitive types defined in [RFC 8641] Structured Field Values for HTTP.