Skip to content

Increase robustness of manifest handling in model generation. #926

@l5io

Description

@l5io

medium

The current implementation of getResolvedManifest only clears $ref fields from schemas within components/schemas. While this is sufficient for the current usage in GenerateFromOpenAPI, the function is not fully generic. An OpenAPI document can have $refs in other places like paths, parameters, responses, etc. To make this function more robust and reusable, consider extending it to clear $refs from the entire document. For example, you could iterate through doc.Paths and other parts of doc.Components and call clearSchemaRefs on any SchemaRef found.

Originally posted by @gemini-code-assist[bot] in #924

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions