v3.1.2: Explain Param and Header example serialization (backports PR 4800) #4826
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of #4800, with the parts referencing the new Example Object fields and guidance on
Set-Cookie
removed. Note that we do have one use of the Example Object'svalue
field for anapplication/x-www-form-urlencoded
Media Type Object, and this change to the style examples table makes the table line up with the example. Which I think is a good thing. Since we're doing a bunch of other percent-encoding-related tidying, we might as well include this and make 3.1.2 and 3.2.0 consistent.Commit message follows:
The rules for this have not been clear, and are not always intuitive. This states and explains them directly and ensures that the Style Examples table matches the rules.
Unlike past efforts, this provides a rule system regarding what is and is not included, based on a combination of what is produced by RFC6570 (or the nearest RFC6570 equivalent), modified by removing leading delimiters that are not correct for our usage due to differences from the assuptions made by RFC6570.