joelittlejohn / jsonschema2pojo

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, etc
http://www.jsonschema2pojo.org
Apache License 2.0
6.24k stars 1.66k forks source link

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

Open haojava opened 1 year ago

haojava commented 1 year ago

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 commented 1 year ago

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: