Skip to content

Handling local references on jsonschema2pojo.org #183

@okrosa

Description

@okrosa

The following schema fails with an URI is not absolute error (based on my java validator, the reference should be good like this):

{
    "type": "object",
    "definitions": 
    {
        "location": 
        {
            "type": "object",
            "properties": 
            {
                "lat": 
                {
                    "type": "number"
                },

                "lon": 
                {
                    "type": "number"
                }
            }
        }
    },

    "properties": 
    {
        "location": 
        {
            "$ref": "#/definitions/location"
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions