Skip to content

guardrailDiscoveredOpenApiFiles incorrectly processes Emacs autosave files as duplicates of existing schemas. #254

@mschaef-da

Description

@mschaef-da

When editing Schema files with Emacs, it's not uncommon to have an autosave file that exists in parallel to the schema file being edited. If you have schema.yaml, you can have both schema.yaml and #schema.yaml# in the working directory.

In this scenario, guardrailDiscoveredOpenApiFiles will pick up both files, causing both to be processed as schemas - including generated output code. This can result in spurious warnings that the generated output file "contained different content than was expected". It also implies that whichever of the two files that was processed second will overwrite the first - meaning that schema changes might not be represented in the generated code.

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