Skip to content

Conversation

@TordAreStromsnes
Copy link
Contributor

We cannot download the bin files from the endpoint if format is set to json, so we have to make this an optional parameter in the endpoint.

QueryBuilder API improvements:

  • Added support in QueryBuilder.format() to omit the $format parameter by passing an empty string or None, and updated the default to "json".

Query parameter construction:

  • Modified build_query_params in odata.py to only include the $format parameter if it is not empty or None.

Documentation updates:

  • Added a new section to query-builder.md documenting how to use the .format() method, including examples for omitting the parameter.

@TordAreStromsnes TordAreStromsnes merged commit 735f490 into main Nov 12, 2025
6 checks passed
@TordAreStromsnes TordAreStromsnes deleted the feat/make-format-optional branch November 12, 2025 09:47
TordAreStromsnes pushed a commit that referenced this pull request Nov 12, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.4.0](v0.3.0...v0.4.0)
(2025-11-12)


### Features

* make json format optional in stead of a forced default
([#32](#32))
([735f490](735f490))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants