8000 Relative paths for JSON references are not supported · Issue #29 · everit-org/json-schema · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Relative paths for JSON references are not supported #29
Closed
@iainporter

Description

@iainporter

given a root schema and a subschema in a different file:

parent.json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"child": { "$ref": "child.json"}
}
}

child.json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "child.json",
"type": "object",
"properties": {
"foo": {"type": "string"},
"bar": {"type": "string"}
}
}

I would expect to be able to reference child.json as relative to the location of the root schema. Currently I would have to provide an absolute URI for the root schema id (i.e "id": "http://localhost:/myschemas/parent.json") and deploy that to a web container.

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

      0