Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protect from recursion in openapi3.InternaliseRefs #578

Commits on Aug 29, 2022

  1. Protect from recursion in openapi3.InternaliseRefs

    Fixes stack overflow panic when schema includes link to itself, like:
    
    ```
    components:
      schemas:
        Item:
          type: object
          properties:
            Name:
              type: string
            ParentLink:
              $ref: '#/components/schemas/Item'
    ```
    Dmitriy Lukiyanchuk committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    e429cc0 View commit details
    Browse the repository at this point in the history
  2. Run go fmt by go1.19.0

    Dmitriy Lukiyanchuk committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    0a3777d View commit details
    Browse the repository at this point in the history
  3. Move openapi3 visitedComponent from context to doc *T

    Dmitriy Lukiyanchuk committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    901a9ed View commit details
    Browse the repository at this point in the history
  4. Remove not used context from openapi3

    Dmitriy Lukiyanchuk committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    69c3063 View commit details
    Browse the repository at this point in the history