quicktype-vscode icon indicating copy to clipboard operation
quicktype-vscode copied to clipboard

Generate code from JSON Schema in VSCode fails for referenced files

Open anobleperson opened this issue 2 years ago • 0 comments

When generating code from JSON Schema (VsCode option "Open QuickType for Json Schema") the code fails to appear when there are types that reference another file. For example the following causes the code generation to fail:

...
                "myTypes": {
                    "type": "array",
                    "items": {
                        "$ref": "../../../common/enums/MyEnum.schema"
                    }
                }
...

There is no failure notification, it just fails to show the generated code.

anobleperson avatar Aug 23 '23 07:08 anobleperson