Skip to content

generate-extension: Update class generation code to handle php-style empty data - #7599

Merged
deeleeramone merged 1 commit into
OpenBB-finance:v5from
rockbound:handle-php-serialization
Jul 20, 2026
Merged

generate-extension: Update class generation code to handle php-style empty data#7599
deeleeramone merged 1 commit into
OpenBB-finance:v5from
rockbound:handle-php-serialization

Conversation

@montehoover

Copy link
Copy Markdown

This PR fixes a OpenAPI schema parsing issue that showed up in test_eodhd_fetchers.py in the generated openbb-eodhd extension.

When API providers use php's json_encode on an empty object it sends [] as JSON, which isn't currently handled in
generate_class(). This generator now produces classes that handle[] where applicable. All tests pass with this change incorporated.

The test failure was test_internal_user_fetcher on the availableMarketplaceDataFeeds field. You can see the passing tests here: https://github.com/rockbound/openbb-eodhd/actions/workflows/tests.yml

(Follows from discussion in #7582.)

@CLAassistant

CLAassistant commented Jul 19, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@deeleeramone deeleeramone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks for your help!

@deeleeramone
deeleeramone merged commit 80634fe into OpenBB-finance:v5 Jul 20, 2026
17 checks passed
@deeleeramone deeleeramone added bug Bugs and bug fixes cli OpenBB Platform CLI V5 PRs and issues for ODP V5 labels Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bugs and bug fixes cli OpenBB Platform CLI V5 PRs and issues for ODP V5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants