Skip to content

Commit

Permalink
Create schemas.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Sep 22, 2024
1 parent e325047 commit 6a92f2e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bank_integration/banks/banking_app/app/auth/auth/schemas.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from marshmallow import Schema, fields

class UserSchema(Schema):
id = fields.Int(dump_only=True)
username = fields.Str(required=True)
password = fields.Str(load_only=True)

class Meta:
fields = ("id", "username", "password")

0 comments on commit 6a92f2e

Please sign in to comment.