Skip to content

fix(smartlearn): Ensure 'position' attribute in JSON follows sequential positive values

Kurt Järmann requested to merge fix-position_attribute into main
  • Updated JSON generation logic to set the 'position' attribute to sequential positive values, starting from 1, ensuring compatibility with Smartlearn's requirements.
  • Added automated validation tests to verify 'position' values are positive and sequential across JSON blocks.
  • Implemented negative tests to confirm 'position' does not contain invalid values (0 or negative).

This update resolves Issue #2 (closed) by enforcing the correct usage of 'position' in the Smartlearn format, facilitating expected output generation.

Merge request reports

Loading