Skip to content

Conversation

@Layf21
Copy link
Owner

@Layf21 Layf21 commented Nov 19, 2025

Motivation

Unknown/unexpected or not implemented values should still be accessible. Waiting for the maintainers to implement such a small thing is annoying.

resolves #7

Implementation

All datamodel classes should have a raw (or some equivalent) attribute which stores the raw json response data for this object.

The raw attribute is not meant to be used over the direct attributes. It is meant to be a fallback solution if things are not yet implemented.

Changes

Added:

  • Component.raw
  • Facility.raw
  • Address.raw
  • TimeWindowDay.raw
  • TimeWindowPhase.raw
  • NotificationOverview.raw
  • NotificationSubmissionState.raw
  • UserData.raw (just like the Froeling._userdata object, this does not update on auto-reauth)

Added tests for these raw attributes.

This new attribute stores the raw json of the api response for this object.
@Layf21 Layf21 added the enhancement New feature or request label Nov 19, 2025
@Layf21 Layf21 merged commit d2943b7 into main Nov 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a "raw" attribute to datamodels

2 participants