generated from Luis/nextjs-python-web-template
Added usage field to service
This commit is contained in:
@@ -19,7 +19,7 @@ import json
|
||||
|
||||
from datetime import datetime
|
||||
from typing import Any, Dict
|
||||
from pydantic import BaseModel, Field, StrictInt, StrictStr
|
||||
from pydantic import BaseModel, Field, StrictStr
|
||||
|
||||
class Resolution(BaseModel):
|
||||
"""
|
||||
@@ -30,8 +30,7 @@ class Resolution(BaseModel):
|
||||
resolved_did: StrictStr = Field(...)
|
||||
other: Dict[str, Any] = Field(...)
|
||||
timestamp: datetime = Field(...)
|
||||
id: StrictInt = Field(...)
|
||||
__properties = ["requester_name", "requester_did", "resolved_did", "other", "timestamp", "id"]
|
||||
__properties = ["requester_name", "requester_did", "resolved_did", "other", "timestamp"]
|
||||
|
||||
class Config:
|
||||
"""Pydantic configuration"""
|
||||
@@ -73,8 +72,7 @@ class Resolution(BaseModel):
|
||||
"requester_did": obj.get("requester_did"),
|
||||
"resolved_did": obj.get("resolved_did"),
|
||||
"other": obj.get("other"),
|
||||
"timestamp": obj.get("timestamp"),
|
||||
"id": obj.get("id")
|
||||
"timestamp": obj.get("timestamp")
|
||||
})
|
||||
return _obj
|
||||
|
||||
|
||||
Reference in New Issue
Block a user