openapi3: introduce StringMap type to enable unmarshalling of maps with Origin#1018
Merged
fenollp merged 3 commits intogetkin:masterfrom Oct 16, 2024
oasdiff:master
Merged
openapi3: introduce StringMap type to enable unmarshalling of maps with Origin#1018fenollp merged 3 commits intogetkin:masterfrom oasdiff:master
fenollp merged 3 commits intogetkin:masterfrom
oasdiff:master
Conversation
Collaborator
|
Please rebase on top of #1019 |
fenollp
added a commit
that referenced
this pull request
Oct 21, 2024
* add origin - step 1 * delete origin from content * point to Origin * make include origin configurable * generic unmarshalStringMap * add origin to more components * revert comments * use const originKey * comment to Scopes * test more specs * Fix Discriminator * update docs * test on a decent set of dedicated specs * remove trainling spaces * add comments * remove trailing whitespace * update docs * dedicated tests * update docs * remove whitespace * rm empty line * rm last newline * add tests * rm unused test files * update deps * fix paths test * test components/security * fix LF * include origin in unmarshal maps * move component unmarshallers to respective files * fix test (json-schema 301) * Add github.com/pb33f/libopenapi (#1004) * Add github.com/pb33f/libopenapi it looks like a reasonable alternative * Update README.md --------- Co-authored-by: Pierre Fenoll <pierrefenoll@gmail.com> * Introduce an option to override the regex implementation (#1006) * make form required field order deterministic (#1008) * openapi2: fix un/marshalling discriminator field (#1011) * fix: issue unmarshalling when discriminator field is set in openapi2.0 * revert original approach * update with different approach * Revert "update with different approach" This reverts commit 2db2b39. * v2 schema with discriminator field set as string * update ref link and comment * run docs.sh * README: add Fuego to dependents (#1017) * openapi3: skip a test in CI to avoid 403s from some remote server (#1019) Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com> * revert fix test (json-schema 301) * openapi3: introduce StringMap type to enable unmarshalling of maps with Origin (#1018) * add origin to more components * Fix Discriminator * update docs * update doccs * merge with stringmap * remove unused Scopes --------- Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com> Co-authored-by: Jille Timmermans <jille@quis.cx> Co-authored-by: Pierre Fenoll <pierrefenoll@gmail.com> Co-authored-by: Alexander Bakker <ab@alexbakker.me> Co-authored-by: Justin Sherrill <jlsherrill@gmail.com> Co-authored-by: Jay Shah <jay.shah@konghq.com> Co-authored-by: Ewen Quimerc'h <46993939+EwenQuim@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR replaces two fields in openapi3 from
map[string]stringby a new typeStringMap:Discriminator.MappingOAuthFlow.ScopesThis new
StringMaptype will enable unmarshalling of maps with origin in the subsequent PR: #1007.