feat: sample-gen multipart and form media-type #6874
Merged
+61
−59
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.
application/x-www-form-urlencoded || multipart/ initial value should rely on sample gen in case it will harvest schema information.
Description
Part of lager refactor issue #6470
Changes:
Motivation and Context
Fixes #6621 because the initial value was manually retrieved from the spec. With switching to sample gen fn the case stated in the issue is already implemented. (
?url=https://gist.githubusercontent.com/mathis-m/388f6772747dfeb8a0092eac69cfd008/raw/711e6f787da10f1ae57873749f6826f9b3c6be60/Pqo45ggmbT.txt
)How Has This Been Tested?
not - but I don't think we need any test for this because we now use existing logic.
Checklist
My PR contains...
src/
is unmodified: changes to documentation, CI, metadata, etc.)package.json
)My changes...
Documentation
Automated tests