Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json schema $ref request address contains separator (':') , NTFS ADS separator (':') in file name is forbidden. #1545

Open
haojava opened this issue Jul 26, 2023 · 1 comment

Comments

@haojava
Copy link

haojava commented Jul 26, 2023

jsonschema2pojo-maven-plugin version:1.2.1

json shcema file:

{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://example.com/tree",
    "type": "object",
    "properties": {
        "products": {
            "type": "array",
            "items": {
                "$ref": "https://example.com/tree/urn:jsonschema:tree:definition"
            }
        }
    }
}

jsonschema2pojo resolving exceptions:NTFS ADS separator (':') in file name is forbidden.

@unkish
Copy link
Collaborator

unkish commented Jul 31, 2023

Hi

It's not quite clear whether there is intent is to resolve $ref through URN (urn:jsonschema:tree:definition) or URN "resolution" is done on the server-side serving https://example.com/tree/urn:jsonschema:tree:definition.
In case it's former, then fixing NTFS ADS separator (':') in file name is forbidden. won't help as there's no URN resolution support, see:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants