Skip to content

feature: Add an option to manually populate the cache of the schema #342

@dgarros

Description

@dgarros

Component

Python SDK

Describe the Feature Request

While doing unit tests it would be very useful if we could manually populate the cache of the schema directly. Currently in order to write unit tests we need to mock the query to /api/schema.

The proposal is to provide a method to manually provide a SchemaRoot to populate the cache :

  • client.schema.set_cache

it should be possible to populate the cache of each branch individually

Describe the Use Case

Improve the developer experience while writing unit tests

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions