Skip to content

Commit

Permalink
add sensitive service to the schema (#2258)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbahrai authored Aug 27, 2024
1 parent 03760e5 commit dc35b62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ class ServiceSchema(BaseSchema, UUIDsAsStringsMixin):
letter_contact_block = fields.Method(serialize="get_letter_contact")
go_live_at = field_for(models.Service, "go_live_at", format="%Y-%m-%d %H:%M:%S.%f")
organisation_notes = field_for(models.Service, "organisation_notes")
sensitive_service = field_for(models.Service, "sensitive_service")

def get_letter_logo_filename(self, service):
return service.letter_branding and service.letter_branding.filename
Expand Down Expand Up @@ -776,6 +777,7 @@ class Meta:
email_from = fields.String()
created_by_id = fields.UUID()
version = fields.Integer()
sensitive_service = fields.Boolean()


class ApiKeyHistorySchema(Schema):
Expand Down

0 comments on commit dc35b62

Please sign in to comment.