Skip to content

fix: Fix parsing Date into query parameters (box/box-codegen#729) #591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "31cbd21", "specHash": "a8825be", "version": "1.14.0" }
{ "engineHash": "0be574b", "specHash": "a8825be", "version": "1.14.0" }
4 changes: 2 additions & 2 deletions docs/docgen.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ See the endpoint docs at
<!-- sample get_docgen_jobs_id_v2025.0 -->

```python
client.docgen.get_docgen_job_by_id_v2025_r0(docgen_jobs.entries[0].id)
client.docgen.get_docgen_job_by_id_v2025_r0(docgen_job_item_from_list.id)
```

### Arguments
Expand Down Expand Up @@ -47,7 +47,7 @@ See the endpoint docs at
<!-- sample get_docgen_jobs_v2025.0 -->

```python
client.docgen.get_docgen_jobs_v2025_r0()
client.docgen.get_docgen_jobs_v2025_r0(limit=500)
```

### Arguments
Expand Down
10 changes: 8 additions & 2 deletions test/docgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
DocGenJobsFullV2025R0,
)

from box_sdk_gen.schemas.v2025_r0.doc_gen_job_full_v2025_r0 import DocGenJobFullV2025R0

from box_sdk_gen.schemas.v2025_r0.doc_gen_job_v2025_r0 import DocGenJobV2025R0

from test.commons import get_default_client
Expand Down Expand Up @@ -70,7 +72,9 @@ def testDocgenBatchAndJobs():
assert not to_string(docgen_batch_jobs.entries[0].status) == ''
assert docgen_batch_jobs.entries[0].template_file.id == uploaded_file.id
assert docgen_batch_jobs.entries[0].batch.id == docgen_batch.id
docgen_jobs: DocGenJobsFullV2025R0 = client.docgen.get_docgen_jobs_v2025_r0()
docgen_jobs: DocGenJobsFullV2025R0 = client.docgen.get_docgen_jobs_v2025_r0(
limit=500
)
assert len(docgen_jobs.entries) >= 1
assert not docgen_jobs.entries[0].batch.id == ''
assert not docgen_jobs.entries[0].created_by.id == ''
Expand All @@ -86,8 +90,10 @@ def testDocgenBatchAndJobs():
)
assert not docgen_jobs.entries[0].template_file_version.id == ''
assert to_string(docgen_jobs.entries[0].type) == 'docgen_job'
index_of_item: int = 0
docgen_job_item_from_list: DocGenJobFullV2025R0 = docgen_jobs.entries[index_of_item]
docgen_job: DocGenJobV2025R0 = client.docgen.get_docgen_job_by_id_v2025_r0(
docgen_jobs.entries[0].id
docgen_job_item_from_list.id
)
assert not docgen_job.batch.id == ''
assert not docgen_job.id == ''
Expand Down