From b0be7005bd4dd3847d0f0ca2bafd75cf35691725 Mon Sep 17 00:00:00 2001 From: ram Date: Thu, 11 Jul 2024 08:17:32 -0700 Subject: [PATCH] Fix typo in docs (#174) Authored-by: perro --- docs/schema.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/schema.rst b/docs/schema.rst index 5044725..352ecd0 100644 --- a/docs/schema.rst +++ b/docs/schema.rst @@ -105,7 +105,7 @@ This example shows a schema of a basic dict: # Schema { - 'type': 'dict': # or 'object' + 'type': 'dict', # or 'object' 'keys': { # or 'properties' 'name': { 'type': 'string' @@ -158,11 +158,11 @@ The ``additionalProperties`` keyword can be: 'keys': { # or 'properties' 'name': { 'type': 'string' }, }, - + 'addtionalProperties': True # or - + 'additionalProperties': { 'type': 'string' } } @@ -497,7 +497,7 @@ which contains more links and a sub-sub-menu and so on... }, 'children': { '$ref': '#' } } - } + } } .. caution:: @@ -552,12 +552,12 @@ certain limitations. 'oneOf': [ { 'properties': { - 'age': {'type': 'number'} + 'age': {'type': 'number'} } }, { 'properties': { - 'date_of_birth': {'type': 'string', 'format': 'date-time'} + 'date_of_birth': {'type': 'string', 'format': 'date-time'} } } ] @@ -605,14 +605,14 @@ certain limitations. 'allOf': [ { 'properties': { - 'age': {'type': 'number'} + 'age': {'type': 'number'} } }, { 'properties': { - 'date_of_birth': {'type': 'string', 'format': 'date-time'} + 'date_of_birth': {'type': 'string', 'format': 'date-time'} } } ], 'additionalProperties': True # additionalProperties can be used with allOf - } \ No newline at end of file + }