Skip to content

$ref in generated files are mixed case, but generated files are lower case #63

Description

@jonahgraham

The files generated by the tool are all lowercase file names because of this .lower() (and the subsequent ones?):

kind = title.split(".")[-1].lower()

But the $refs are the case of the input, in my case mixed case:

{"$ref": (title.replace("#/components/schemas/", "") + ".json")}

The result is a schema that doesn't load properly.

This tool pretty much did exactly what I needed, thanks!

As a workaround, I lowercased the $ref lines in all the json files.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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