Skip to content

Encoding Object content and header clarifications (3.0.4) - #3857

Merged
miqui merged 7 commits into
OAI:v3.0.4-devfrom
handrews:enc-304
Jun 12, 2024
Merged

Encoding Object content and header clarifications (3.0.4)#3857
miqui merged 7 commits into
OAI:v3.0.4-devfrom
handrews:enc-304

Conversation

@handrews

@handrewshandrews commented May 25, 2024

Copy link
Copy Markdown
Member

Rendering with all currently open 3.0.4 changes (as of the timestamp of this edit - use the dropdown on the word "edited" in the bar for this comment) can be found here.

Fixes:

The Encoding Object's contentType field takes a comma-separated list of either regular or wildcared media types. These are the "two types" mentioned in the previous wording – "two" here did not refer to a limit on the number of entries in the list.

These are not exactly media-type or media-range values, as both of those include parameters.

This change also moves the hard-to-follow list of default values out of the individual field cell and into its own table.

It takes Content-Disposition out of the header field's cell and instead explains limitations on header usage, and explains how Content-Disposition is used for encoding.

This explanation includes a suggestion on how other multipart formats could be used with an Encoding Object, since their unnamed parts otherwise cannot be supported.

Finally, it clarifies the interaction between contentType and the three fields imported from the Parameter Object, by aligning the recommended (but not, for compatibility reasons, required) behavior with guidance added in 3.1.0.

@handrewshandrews added the media and encoding Issues regarding media type support and how to encode data (outside of query/path params) label May 25, 2024
@handrewshandrews added this to the v3.0.4 milestone May 25, 2024
@handrews
handrews requested a review from a teamMay 25, 2024 22:43
@handrewshandrews added param serialization Issues related to parameter and/or header serialization clarification requests to clarify, but not change, part of the spec and removed param serialization Issues related to parameter and/or header serialization labels May 25, 2024
Comment threadversions/3.0.4.md Outdated
Comment threadversions/3.0.4.md Outdated
Comment threadversions/3.0.4.md Outdated
ralfhandl
ralfhandl previously approved these changes Jun 4, 2024
Comment threadversions/3.0.4.md Outdated
Comment threadversions/3.0.4.md Outdated

@notEthannotEthan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

ralfhandl
ralfhandl previously approved these changes Jun 7, 2024
@handrews

Copy link
Copy Markdown
MemberAuthor

@notEthan@ralfhandl I'm afraid I did a little re-arranging after resolving conflicts because it got less clear. This now splits the fields like they are in the Parameter Object and the Header Object (now that both of those have their own tables structured the same way, the Encoding Object became a weird exception to the pattern).

This will conflict with the percent-encoding PR, but it would have anyway. I'll resolve conflicts for whichever isn't merged first.

@ralfhandlralfhandl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nits

Comment threadversions/3.0.4.md Outdated
Comment threadversions/3.0.4.md Outdated
ralfhandl
ralfhandl previously approved these changes Jun 11, 2024
@ralfhandl
ralfhandl requested a review from a teamJune 11, 2024 17:11
handrewsand others added 4 commits June 11, 2024 11:04
The Encoding Object's `contentType` field takes a comma-separated
list of either regular or wildcared media types. These are the
"two types" mentioned in the previous wording – "two" here did
*not* refer to a limit on the number of entries in the list.
These are not exactly media-type or media-range values, as both
of those include parameters.
This change also moves the hard-to-follow list of default values
out of the individual field cell and into its own table.
It takes `Content-Disposition` out of the header field's cell
and instead explains limitations on header usage, and explains
how `Content-Disposition` is used for encoding.
This explanation includes a suggestion on how other `multipart`
formats could be used with an Encoding Object, since their
unnamed parts otherwise cannot be supported.
Finally, it clarifies the interaction between `contentType`
and the three fields imported from the Parameter Object, by
aligning the recommended (but not, for compatibility reasons,
required) behavior with guidance added in 3.1.0.
Co-authored-by: Ralf Handl <ralf.handl@sap.com>
handrewsand others added 3 commits June 11, 2024 11:04
This splits the Encoding Object's fixed fields table
to make the usage more clear, and closer to how it is presented
for the Parameter and Header Objects
🤦 thanks for catching this, @ralfhandl
Co-authored-by: Ralf Handl <ralf.handl@sap.com>
@ralfhandl
ralfhandl requested a review from a teamJune 12, 2024 07:20
@miqui
miqui merged commit 3734678 into OAI:v3.0.4-devJun 12, 2024
@handrews
handrews deleted the enc-304 branch June 13, 2024 17:34
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clarificationrequests to clarify, but not change, part of the specmedia and encodingIssues regarding media type support and how to encode data (outside of query/path params)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@handrews@notEthan@ralfhandl@miqui