Skip to content

Commit 16cc46b

Browse files
authored
doc: update initialization with is_valid example (#134)
1 parent 387d90c commit 16cc46b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/usage/initialization.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ For parser to use your custom configuration, it needs to be passed as an argumen
141141
142142
northwind = pyodata.Client(SERVICE_URL, requests.Session(), config=custom_config)
143143
144+
Additionally, Schema class has Boolean atribute 'is_valid' that returns if the parser encountered errors. It's value does not depends on used Parser policy.
145+
146+
.. code-block:: python
147+
148+
northwind.schema.is_valid
149+
144150
Set custom namespaces (Deprecated - use config instead)
145151
-------------------------------------------------------
146152

0 commit comments

Comments
 (0)