Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: getkin/kin-openapi
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.125.0
Choose a base ref
...
head repository: getkin/kin-openapi
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.126.0
Choose a head ref
  • 13 commits
  • 125 files changed
  • 5 contributors

Commits on Jun 16, 2024

  1. Configuration menu
    Copy the full SHA
    78b7c31 View commit details
    Browse the repository at this point in the history
  2. 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
    percivalalb authored Jun 16, 2024
    Configuration menu
    Copy the full SHA
    061c378 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c112aae View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. Configuration menu
    Copy the full SHA
    3aa9b4e View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Configuration menu
    Copy the full SHA
    7ec3129 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. Configuration menu
    Copy the full SHA
    57624b3 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. 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
    AnatolyRugalev authored Jun 26, 2024
    Configuration menu
    Copy the full SHA
    fe47dca View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. Configuration menu
    Copy the full SHA
    42a2d80 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. openapi3: resolve recursive file references (#974)

    * openapi3: resolve recursive file references
    
    * fix file name capitalization
    AnatolyRugalev authored Jul 1, 2024
    Configuration menu
    Copy the full SHA
    a27c9e7 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. 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
    percivalalb authored Jul 3, 2024
    Configuration menu
    Copy the full SHA
    0ed9f5d View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. openapi3: add a test for additionalProperties: false validation (#975)

    * test: add a test for additionalProperties: false validation
    
    * goimports
    AnatolyRugalev authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    4b53bf6 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. 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
    AnatolyRugalev authored Jul 5, 2024
    Configuration menu
    Copy the full SHA
    4144c56 View commit details
    Browse the repository at this point in the history
  2. 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>
    fenollp authored Jul 5, 2024
    Configuration menu
    Copy the full SHA
    2692f43 View commit details
    Browse the repository at this point in the history
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy