Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Jan 30, 2025
1 parent b749334 commit 0cbe7c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plone/restapi/services/userschema/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ class UserSchemaBuilder(Service):
def reply(self):
raise NotImplementedError("The class must implement the reply method")


def build_userschema_as_jsonschema(self, user_schema):
""" function to build a jsonschema from user schema information """
"""function to build a jsonschema from user schema information"""
fieldsets = get_fieldsets(self.context, self.request, user_schema)

# Build JSON schema properties
Expand All @@ -40,6 +39,7 @@ def build_userschema_as_jsonschema(self, user_schema):
"fieldsets": get_fieldset_infos(fieldsets),
}


class UserSchemaGet(UserSchemaBuilder):
def reply(self):
return self.build_userschema_as_jsonschema(getUserDataSchema())
Expand Down

0 comments on commit 0cbe7c6

Please sign in to comment.