From a4b80c4fa5f337801c8189ecf6565174f97cdacd Mon Sep 17 00:00:00 2001 From: "Marcel M. Otte" Date: Tue, 20 Sep 2016 07:38:52 +0200 Subject: [PATCH] tested schema of extensions and validated ipv6 against --- schema.yml | 53 +++++++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/schema.yml b/schema.yml index 2f09f90..5131c24 100644 --- a/schema.yml +++ b/schema.yml @@ -22,30 +22,7 @@ properties: extensions: type: array items: - type: object - properties: - name: - type: string - referencedfrom: - type: string - referenceid: - type: integer - before: - type: string - after: - type: string - fields: - type: array - items: - $ref: "#/definitions/field" - oneOf: - required: - - before - required: - - after - required: - - name - - referenceid + $ref: "#/definitions/extension" documentation: type: object properties: @@ -108,3 +85,31 @@ definitions: - data required: - field + extension: + type: object + properties: + extension: + type: object + properties: + name: + type: string + referencedfrom: + type: string + referenceid: + type: integer + before: + type: string + after: + type: string + fields: + type: array + items: + $ref: "#/definitions/field" + oneOf: + - required: + - before + - required: + - after + required: + - name + - referenceid