CopyPastor

Detecting plagiarism made easy.

Score: 0.807103157043457; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-05-11
by Spider

Original Post

Original - Posted on 2017-10-27
by Pedro



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Use patternProperties
{ "$schema": "http://json-schema.org/draft-6/schema#", "type": "object", "properties": { "shipping_address": { "patternProperties": { "^.*$": { "properties": { "haha":{ "type":"integer" } } } } } } }
You can try something like this:
{ "id": "my-schema", "type": "object", "properties": { "objects": { "type": "object", "patternProperties": { "[a-z]+": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } }, "additionalProperties": false, "required": [ "id", "name" ] } } } } }

        
Present in both answers; Present only in the new answer; Present only in the old answer;