From 51b2301d796ac0b16ceaa521f150585b884053e9 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Fri, 20 Jan 2017 13:16:09 +0100 Subject: [PATCH] Document more props, refs #41 --- schemata/user.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/schemata/user.yaml b/schemata/user.yaml index 2d09b5f..fd935a7 100644 --- a/schemata/user.yaml +++ b/schemata/user.yaml @@ -15,14 +15,22 @@ properties: type: string example: "Example User" avatar: - type: string - example: "http://example.net/user.png" + $ref": "base.json#/definitions/url" founder: example: 6 description: Founding member number oneOf: - { type: 'null' } - { type: 'integer' } + scope: + description: Usage scopes granted to the user + type: array + uniqueItems: true + items: + type: string + example: content_management + app: + "$ref": "base.json#/definitions/uuid" plan: "$ref": "base.json#/definitions/uuid" quotaSites: