Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Using classpath in json string causes npm start to crash #92

@CaptionOption

Description

@CaptionOption

In the json schemas in my project I use the word classpath when using $ref in order to allow schemas to reference other schemas. This causes doca to crash.

More detail:

My SampleKeyValueReferenceSchema.json file is the following

{
  "$ref": "classpath:samples/SampleKeyValueSchema.json"
}

SampleKeyValueSchema.json is another schema.

When I run npm start in the json schema folder that is generated, I get the following error:

Error: ENOENT: no such file or directory, open 'classpath:samples/SampleKeyValueSchema.json'
 @ ./schemas.js 13:1305-1393
 @ ./src/client/store.js
 @ ./src/client/index.js
 @ multi webpack-hot-middleware/client?path=http://192.168.2.18:8080/__webpack_hmr ./src/client/index.js

How do I solve this. Does this tool support classpath in json schema?

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