Skip to content

[BUG]: in Windows it doesn't work with absolute paths and interprets them as a link #2869

@f4a290e2

Description

@f4a290e2

Issue Type

path to file

Context (Environment, Version, Language)

quicktype -s schema C:\Users\Cat\axe\projects\neo-app\data\schemes\bookmark.schema.json -o C:\Users\Cat\axe\projects\neo-app\data\typescript\bookmark.ts --just-types
Error: Could not fetch schema , referred to from c:\Users\Cat\axe\projects\neo-app\data\schemes\bookmark.schema.json#items.

If you run it as a relative path, everything works.

quicktype -s schema .\data\schemes\bookmark.schema.json -o .\data\typescript\bookmark.ts --just-types

The problem arose when I wrote a PowerShell script that takes all the files in a folder and generates types from them. It had an absolute path, which prevented it from working.

I solved this problem in the script by replacing it with a relative path, but that seems like a hack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions