joelittlejohn / jsonschema2pojo

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, etc

Home Page:http://www.jsonschema2pojo.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

haojava opened this issue · comments

commented

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.

commented

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: