Skip to content

Commit

Permalink
restrict underlying JSON Schema type field to simple types only (for
Browse files Browse the repository at this point in the history
  • Loading branch information
shockey committed Apr 9, 2019
1 parent 9b3cf4d commit 76fc481
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/plugins/json-schema-validator/validator/jsonSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,16 @@ export default {
uniqueItems: true
},
type: {
anyOf: [
{ $ref: "#/definitions/simpleTypes" },
{
type: "array",
items: { $ref: "#/definitions/simpleTypes" },
minItems: 1,
uniqueItems: true
}
]
$ref: "#/definitions/simpleTypes"
// anyOf: [
// { $ref: "#/definitions/simpleTypes" },
// {
// type: "array",
// items: { $ref: "#/definitions/simpleTypes" },
// minItems: 1,
// uniqueItems: true
// }
// ]
},
allOf: { $ref: "#/definitions/schemaArray" },
anyOf: { $ref: "#/definitions/schemaArray" },
Expand Down

0 comments on commit 76fc481

Please sign in to comment.