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

Ensure embedded spec contains all necessary OpenAPI documents #771

Merged
merged 1 commit into from
Oct 24, 2022

Commits on Oct 24, 2022

  1. Ensure embedded spec contains all necessary OpenAPI documents

    When using a schema that uses `$ref`s to an external file, although we
    generate the mappings appropriately, this then leads to the embedded
    spec being misaligned, as it continues to use the `$ref` to that
    external file, which then is not available when calling i.e.
    `GetSwagger`.
    
    We can take advantage of the `InternalizeRefs` method to perform an
    in-place modification to apply those external references into a single,
    embeddable spec.
    
    This appears to only work when a full file is referenced, instead of a
    path within a file.
    jamietanna authored and Jamie Tanna committed Oct 24, 2022
    Configuration menu
    Copy the full SHA
    8a93137 View commit details
    Browse the repository at this point in the history