You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
res = nest.chapters.list_chapters(country="India", region="Asia", page=1)
278
+
res = nest.chapters.list_chapters(country="India", page=1, page_size=100)
274
279
275
280
# Handle response
276
281
print(res)
@@ -318,15 +323,15 @@ with Nest(
318
323
print(e.raw_response)
319
324
320
325
# Depending on the method different errors may be thrown
321
-
ifisinstance(e, models.ChapterErrorResponse):
326
+
ifisinstance(e, models.ChapterError):
322
327
print(e.data.message) # str
323
328
```
324
329
325
330
### Error Classes
326
331
**Primary error:**
327
332
*[`NestError`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/nesterror.py): The base class for HTTP error responses.
328
333
329
-
<details><summary>Less common errors (11)</summary>
334
+
<details><summary>Less common errors (15)</summary>
330
335
331
336
<br />
332
337
@@ -337,12 +342,16 @@ with Nest(
337
342
338
343
339
344
**Inherit from [`NestError`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/nesterror.py)**:
340
-
*[`ChapterErrorResponse`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/chaptererrorresponse.py): Chapter error response schema. Status code `404`. Applicable to 1 of 16 methods.*
341
-
*[`CommitteeErrorResponse`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/committeeerrorresponse.py): Committee error response schema. Status code `404`. Applicable to 1 of 16 methods.*
342
-
*[`MemberErrorResponse`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/membererrorresponse.py): Member error response schema. Status code `404`. Applicable to 1 of 16 methods.*
343
-
*[`OrganizationErrorResponse`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/organizationerrorresponse.py): Organization error response schema. Status code `404`. Applicable to 1 of 16 methods.*
344
-
*[`ProjectErrorResponse`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/projecterrorresponse.py): Project error response schema. Status code `404`. Applicable to 1 of 16 methods.*
345
-
*[`SponsorErrorResponse`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/sponsorerrorresponse.py): Sponsor error response schema. Status code `404`. Applicable to 1 of 16 methods.*
345
+
*[`ChapterError`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/chaptererror.py): Chapter error schema. Status code `404`. Applicable to 1 of 20 methods.*
346
+
*[`CommitteeError`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/committeeerror.py): Committee error schema. Status code `404`. Applicable to 1 of 20 methods.*
347
+
*[`MemberError`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/membererror.py): Member error schema. Status code `404`. Applicable to 1 of 20 methods.*
348
+
*[`OrganizationError`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/organizationerror.py): Organization error schema. Status code `404`. Applicable to 1 of 20 methods.*
349
+
*[`EventError`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/eventerror.py): Event error schema. Status code `404`. Applicable to 1 of 20 methods.*
350
+
*[`IssueError`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/issueerror.py): Issue error schema. Status code `404`. Applicable to 1 of 20 methods.*
351
+
*[`ProjectError`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/projecterror.py): Project error schema. Status code `404`. Applicable to 1 of 20 methods.*
352
+
*[`ReleaseError`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/releaseerror.py): Release error schema. Status code `404`. Applicable to 1 of 20 methods.*
353
+
*[`RepositoryError`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/repositoryerror.py): Repository error schema. Status code `404`. Applicable to 1 of 20 methods.*
354
+
*[`SponsorError`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/sponsorerror.py): Sponsor error schema. Status code `404`. Applicable to 1 of 20 methods.*
346
355
*[`ResponseValidationError`](https://github.com/OWASP/nest-sdk-python/blob/master/./src/owasp_nest/models/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
347
356
348
357
</details>
@@ -365,7 +374,7 @@ with Nest(
365
374
api_key="<YOUR_API_KEY_HERE>",
366
375
) as nest:
367
376
368
-
res = nest.chapters.list_chapters(country="India", region="Asia", page=1)
377
+
res = nest.chapters.list_chapters(country="India", page=1, page_size=100)
res = nest.chapters.list_chapters(country="India", region="Asia", page=1)
278
+
res = nest.chapters.list_chapters(country="India", page=1, page_size=100)
274
279
275
280
# Handle response
276
281
print(res)
@@ -318,15 +323,15 @@ with Nest(
318
323
print(e.raw_response)
319
324
320
325
# Depending on the method different errors may be thrown
321
-
ifisinstance(e, models.ChapterErrorResponse):
326
+
ifisinstance(e, models.ChapterError):
322
327
print(e.data.message) # str
323
328
```
324
329
325
330
### Error Classes
326
331
**Primary error:**
327
332
*[`NestError`](./src/owasp_nest/models/nesterror.py): The base class for HTTP error responses.
328
333
329
-
<details><summary>Less common errors (11)</summary>
334
+
<details><summary>Less common errors (15)</summary>
330
335
331
336
<br />
332
337
@@ -337,12 +342,16 @@ with Nest(
337
342
338
343
339
344
**Inherit from [`NestError`](./src/owasp_nest/models/nesterror.py)**:
340
-
*[`ChapterErrorResponse`](./src/owasp_nest/models/chaptererrorresponse.py): Chapter error response schema. Status code `404`. Applicable to 1 of 16 methods.*
341
-
*[`CommitteeErrorResponse`](./src/owasp_nest/models/committeeerrorresponse.py): Committee error response schema. Status code `404`. Applicable to 1 of 16 methods.*
342
-
*[`MemberErrorResponse`](./src/owasp_nest/models/membererrorresponse.py): Member error response schema. Status code `404`. Applicable to 1 of 16 methods.*
343
-
*[`OrganizationErrorResponse`](./src/owasp_nest/models/organizationerrorresponse.py): Organization error response schema. Status code `404`. Applicable to 1 of 16 methods.*
344
-
*[`ProjectErrorResponse`](./src/owasp_nest/models/projecterrorresponse.py): Project error response schema. Status code `404`. Applicable to 1 of 16 methods.*
345
-
*[`SponsorErrorResponse`](./src/owasp_nest/models/sponsorerrorresponse.py): Sponsor error response schema. Status code `404`. Applicable to 1 of 16 methods.*
345
+
*[`ChapterError`](./src/owasp_nest/models/chaptererror.py): Chapter error schema. Status code `404`. Applicable to 1 of 20 methods.*
346
+
*[`CommitteeError`](./src/owasp_nest/models/committeeerror.py): Committee error schema. Status code `404`. Applicable to 1 of 20 methods.*
347
+
*[`MemberError`](./src/owasp_nest/models/membererror.py): Member error schema. Status code `404`. Applicable to 1 of 20 methods.*
348
+
*[`OrganizationError`](./src/owasp_nest/models/organizationerror.py): Organization error schema. Status code `404`. Applicable to 1 of 20 methods.*
349
+
*[`EventError`](./src/owasp_nest/models/eventerror.py): Event error schema. Status code `404`. Applicable to 1 of 20 methods.*
350
+
*[`IssueError`](./src/owasp_nest/models/issueerror.py): Issue error schema. Status code `404`. Applicable to 1 of 20 methods.*
351
+
*[`ProjectError`](./src/owasp_nest/models/projecterror.py): Project error schema. Status code `404`. Applicable to 1 of 20 methods.*
352
+
*[`ReleaseError`](./src/owasp_nest/models/releaseerror.py): Release error schema. Status code `404`. Applicable to 1 of 20 methods.*
353
+
*[`RepositoryError`](./src/owasp_nest/models/repositoryerror.py): Repository error schema. Status code `404`. Applicable to 1 of 20 methods.*
354
+
*[`SponsorError`](./src/owasp_nest/models/sponsorerror.py): Sponsor error schema. Status code `404`. Applicable to 1 of 20 methods.*
346
355
*[`ResponseValidationError`](./src/owasp_nest/models/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
347
356
348
357
</details>
@@ -365,7 +374,7 @@ with Nest(
365
374
api_key="<YOUR_API_KEY_HERE>",
366
375
) as nest:
367
376
368
-
res = nest.chapters.list_chapters(country="India", region="Asia", page=1)
377
+
res = nest.chapters.list_chapters(country="India", page=1, page_size=100)
0 commit comments