-
-
Notifications
You must be signed in to change notification settings - Fork 452
Comparing changes
Open a pull request
base repository: getkin/kin-openapi
base: v0.125.0
head repository: getkin/kin-openapi
compare: v0.126.0
- 13 commits
- 125 files changed
- 5 contributors
Commits on Jun 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 78b7c31 - Browse repository at this point
Copy the full SHA 78b7c31View commit details -
openapi3: introduce `ReferencesComponentInRootDocument(doc *T, ref co…
…mponentRef) (string, bool)` (#945) * Add function to check if a schema matches the root document's It does this by keeping track of the source file paths of schemas in multi-file'd specs. This enables the amalgamation of schemas which reference the same underlying model which removes *very annoying* to use anonymous structs in generated models when using codegen tools like oapi-codegen. * Move logic to code generation file And populate all ref types * Move MatchesSchemaInRootDocument to helper file * Make matches root component function generic * Protect against null refs * Update docs * Add function comments * Replace swagger links with OAI spec * Fix bugs, rebase issues, add tests * Add example to README.md * Use JSON pointers to map from name to components
Configuration menu - View commit details
-
Copy full SHA for 061c378 - Browse repository at this point
Copy the full SHA 061c378View commit details -
Configuration menu - View commit details
-
Copy full SHA for c112aae - Browse repository at this point
Copy the full SHA c112aaeView commit details
Commits on Jun 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3aa9b4e - Browse repository at this point
Copy the full SHA 3aa9b4eView commit details
Commits on Jun 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7ec3129 - Browse repository at this point
Copy the full SHA 7ec3129View commit details
Commits on Jun 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 57624b3 - Browse repository at this point
Copy the full SHA 57624b3View commit details
Commits on Jun 26, 2024
-
openapi3: implement circular reference backtracking (#970)
* feat(loader): implement reference back-tracking * update docs * address review comments * update docs and readme * fix inconsistency * adjust readme
Configuration menu - View commit details
-
Copy full SHA for fe47dca - Browse repository at this point
Copy the full SHA fe47dcaView commit details
Commits on Jun 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 42a2d80 - Browse repository at this point
Copy the full SHA 42a2d80View commit details
Commits on Jul 1, 2024
-
openapi3: resolve recursive file references (#974)
* openapi3: resolve recursive file references * fix file name capitalization
Configuration menu - View commit details
-
Copy full SHA for a27c9e7 - Browse repository at this point
Copy the full SHA a27c9e7View commit details
Commits on Jul 3, 2024
-
openapi3: improve internalization ref naming to avoid collisions (#955)
* Add failing test case * Improve default name internalisation to avoid collisions * Set ref path when resolving refs too * Update unit tests Still got some work to do, the recursive test still fails * Make InternalizeRefs deterministic This makes resolving references & internalising references determinstic by sorting map for loops by key. Ensures refs are resolved in the same order, depending on the spec this can result in a different (but equal value) internalised spec. * Ensure root document url is set The unmarshal function was removing the .url value * Ensure internalised names are valid * Update internalized golden files * Maintain first path assigned to each reference This will be the path at the closest point to the actual definition in the reference chain. Also trim . from the start of paths * Tidy up & relocation some functions * Use use OS repsecting file seperator * Check for duplicate references to tidy up internalized spec * Swap condition checks & add comment * Maintain consistent slash, only adjusting for OS specific when needed * Adjust documentation * Internalised -> internalized Excuse my British English
Configuration menu - View commit details
-
Copy full SHA for 0ed9f5d - Browse repository at this point
Copy the full SHA 0ed9f5dView commit details
Commits on Jul 4, 2024
-
openapi3: add a test for additionalProperties: false validation (#975)
* test: add a test for additionalProperties: false validation * goimports
Configuration menu - View commit details
-
Copy full SHA for 4b53bf6 - Browse repository at this point
Copy the full SHA 4b53bf6View commit details
Commits on Jul 5, 2024
-
openapi3: add support for number and integer format validators (#976)
* feat(format): add support for number and integer format validators * update docs * add deprecation notice * add breaking changes notice * minimize error message changes * remove obvious comments * fix string quotation
Configuration menu - View commit details
-
Copy full SHA for 4144c56 - Browse repository at this point
Copy the full SHA 4144c56View commit details -
openapi3: allow YAML-marshaling invalid specs (#977)
* openapi3: allow YAML-marshaling invalid specs Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com> * fixes Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com> --------- Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2692f43 - Browse repository at this point
Copy the full SHA 2692f43View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.125.0...v0.126.0