Skip to content

Commit

Permalink
Fix typo in docs (#174)
Browse files Browse the repository at this point in the history
Authored-by: perro <[email protected]>
  • Loading branch information
perrotuerto authored Jul 11, 2024
1 parent 812888c commit b0be700
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/schema.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -158,11 +158,11 @@ The ``additionalProperties`` keyword can be:
'keys': { # or 'properties'
'name': { 'type': 'string' },
},
'addtionalProperties': True
# or
'additionalProperties': { 'type': 'string' }
}
Expand Down Expand Up @@ -497,7 +497,7 @@ which contains more links and a sub-sub-menu and so on...
},
'children': { '$ref': '#' }
}
}
}
}
.. caution::
Expand Down Expand Up @@ -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'}
}
}
]
Expand Down Expand Up @@ -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
}
}

0 comments on commit b0be700

Please sign in to comment.