diff --git a/meta-schemas/core.yaml b/meta-schemas/core.yaml index 89812a92..b329c26e 100644 --- a/meta-schemas/core.yaml +++ b/meta-schemas/core.yaml @@ -44,6 +44,20 @@ definitions: enum: [ boolean, object ] properties: $ref: "#/definitions/all-properties" + patternProperties: + $ref: "#/definitions/all-properties" + + allOf: + - if: + type: object + properties: + type: + const: object + required: + - type + then: + $ref: "nodes.yaml#" + dependencies: properties: [ type ] contains: diff --git a/meta-schemas/nodes.yaml b/meta-schemas/nodes.yaml index 7c569d47..6f45d2f6 100644 --- a/meta-schemas/nodes.yaml +++ b/meta-schemas/nodes.yaml @@ -10,14 +10,20 @@ type: object properties: type: const: object - description: {} - properties: {} - patternProperties: {} - additionalProperties: {} - required: {} + +propertyNames: + enum: + - type + - description + - dependencies + - properties + - patternProperties + - additionalProperties + - required + - allOf + - anyOf + - oneOf + - $ref required: - type - - properties - -additionalProperties: false