0

suggest me how to use the remote json file in the input jsonschema . Below are the two files which i was using got exception as unknown url

first.json

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "ReferenceTosecondSchema": {
            "$ref": "second.json#/definitions/ExternalType"
        }
    }
}

second.json

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "definitions": {
        "ExternalType": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "src": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "minLength": 1
                    }
                }
            },
            "required": [
                "src"
            ]
        }
    }
}
David
  • 2,987
  • 1
  • 29
  • 35
  • 2
    Possible duplicate of [How to use definitions from external files in JSON Schema?](https://stackoverflow.com/questions/46388284/how-to-use-definitions-from-external-files-in-json-schema) – DeepSpace Mar 12 '19 at 09:34
  • improve code formatting – David Mar 12 '19 at 10:32

0 Answers0