Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

adapter.json: Non-deterministic array order in serialized JSON

Open
#573 1 comment 1 reaction 0 assignees View on GitHub

@thammel is already working on this.

Since Aug 31, 2026.

  • #621 by @thammel — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Inspect the JSON serialization paths for top-level object lists and set-valued attributes such as submodel and isCaseOf. Reproduce serialization across runs with different PYTHONHASHSEED values, then verify that serializing the same AAS produces byte-identical JSON and that the relevant tests remain stable.

Written by the indexing model from the issue text.

Description

discussion enhancement high priority

JSON arrays that originate from unordered Python sets are serialized in non-deterministic order. Affected are the top-level object lists and set-valued attributes such as submodel and isCaseOf.

Expected behavior:
Serializing the same AAS twice produces byte-identical JSON, so output is reproducible across runs.

Actual behavior:
Array element order varies between runs. Set iteration order depends on hash randomization (PYTHONHASHSEED), so each serialization can emit a different ordering. This makes output non-reproducible — complicates diffing, caching, and snapshot testing.

Dominant language
Python
Stars
102
Forks
52
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eclipse-basyx/basyx-python-sdk

All issues in eclipse-basyx/basyx-python-sdk

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.