Coverage for apps/integrations/settings_schemas.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.17.0, created at 2026-11-04 17:24 +0000

1"""Schemas for Provider Settings and Credentials API.""" 

2 

3from __future__ import annotations 

4 

5from ninja import Schema 

6 

7 

8class ProviderFieldOut(Schema): 

9 key: str 

10 label: str 

11 secret: bool 

12 required: bool 

13 

14 

15class ProviderDefOut(Schema): 

16 provider: str 

17 label: str 

18 edit_permission: str 

19 fields: list[ProviderFieldOut]