Skip to content

Refactor OAF base.py to support optional libraries #196

@danielmursa-dev

Description

@danielmursa-dev

Thema / Theme

API

Omschrijving / Description

This issue was made after a question from Bart in the team-bron slack channel

Currently in base.py, some imports use certain libraries without checking if they are installed.

This means that if a dependecy library is intentionally left uninstalled (to be optional), from open_api_framework.conf.base import * will raise an error because the library is not present.

This assumes that all dependencies are installed by default, preventing the library from being used in environments where some dependencies are missing.

Solution:

Update the library so that it detects which dependencies are installed and only enables the corresponding features.

Steps:

  • Fix the library to support optional dependencies
  • Update all projects

Toegevoegde waarde / Added value

No response

Aanvullende opmerkingen / Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestowner: maykintriageTriage means the team has not yet refined this issue.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions