Skip to content

Commit 423246b

Browse files
committed
prepare 0.2.0
1 parent 047d768 commit 423246b

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed

aiopenapi3/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.7"
1+
__version__ = "0.2.0"

docs/source/install.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,4 @@ Installation
66

77
.. code:: bash
88
9-
$ pip install git+https://github.com/commonism/aiopenapi3.git#aiopenapi3
10-
11-
.. warning::
12-
This documentation matches |aiopenapi3| HEAD.
9+
$ pip install aiopenapi3

docs/source/use.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ For valid description documents, it is possible to see some basic statistics abo
327327
call
328328
^^^^
329329

330+
While `restish <https://github.com/danielgtaylor/restish>`_ will be the better choice calling API from the cli - it is possible with aiopenapi3 as well.
331+
330332
plugins
331333
"""""""
332334

tests/fixtures/schema-recursion.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,15 @@ components:
4949
- description: Return results that don't match a <code>Dimension</code> object.
5050

5151

52-
NestedElement:
53-
additionalProperties: false
52+
D:
5453
description: galaxyproject openapi recursive element
5554
properties:
56-
elements:
55+
E:
56+
type: string
57+
F:
5758
items:
58-
anyOf:
59-
- $ref: '#/components/schemas/NestedElement'
59+
# anyOf:
60+
type: object
61+
$ref: '#/components/schemas/D'
6062
title: Elements
6163
type: array

tests/schema_test.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,8 @@ def test_schema_recursion(with_schema_recursion):
7373
a = api.components.schemas["A"].get_type().construct(ofA=1)
7474
b = api.components.schemas["B"].get_type().construct(ofB=2, a=a)
7575

76-
print(b)
77-
78-
79-
# s = api.components.schemas["A"]
80-
# t = s.get_type()
76+
e = api.components.schemas["D"].get_type().__fields__["F"].type_(__root__={"E": 0})
77+
d = api.components.schemas["D"].get_type().construct(E=e)
8178

8279

8380
def test_schema_Of_parent_properties(with_schema_Of_parent_properties):

0 commit comments

Comments
 (0)