deploy(fix): ajuste de pydantic

This commit is contained in:
Keven Willian Pereira de Souza 2025-08-07 13:03:17 -03:00
parent d66b1fc663
commit 308c3b7255
4 changed files with 75 additions and 3 deletions

View file

@ -36,7 +36,7 @@ class GUsuarioSchema(BaseModel):
tipo_usuario: Optional[str]
class Config:
orm_mode = True
from_attributes = True
class GUsuarioLoginSchema(BaseModel):
login: Optional[str] = None

View file

@ -1,6 +1,6 @@
@echo off
cd \
cd C:\IIS\Orius\Api
cd C:\IIS\Orius
call .venv\Scripts\activate.bat
uvicorn main:app --reload
pause

View file

@ -106,5 +106,7 @@
"storage/temp/validation_exception_handler.json",
"storage/temp/validation_exception_handler.json",
"storage/temp/validation_exception_handler.json",
"storage/temp/validation_exception_handler.json"
"storage/temp/validation_exception_handler.json",
"storage/temp/http_exception_handler.json",
"storage/temp/http_exception_handler.json"
]

View file

@ -50682,5 +50682,75 @@
"content-type": "multipart/form-data; boundary=--------------------------402709206183748070216455",
"content-length": "294"
}
},
{
"method": "GET",
"url": "http://localhost:8000/",
"headers": {
"host": "localhost:8000",
"connection": "keep-alive",
"sec-ch-ua": "\"Not;A=Brand\";v=\"99\", \"Brave\";v=\"139\", \"Chromium\";v=\"139\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"upgrade-insecure-requests": "1",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36",
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
"sec-gpc": "1",
"accept-language": "pt-BR,pt;q=0.7",
"sec-fetch-site": "none",
"sec-fetch-mode": "navigate",
"sec-fetch-user": "?1",
"sec-fetch-dest": "document",
"accept-encoding": "gzip, deflate, br, zstd",
"cookie": "UserEmail=admin%40oriustecnologia.com.br; UserPassword=master%40orius; UserRemember=1"
}
},
{
"method": "GET",
"url": "http://localhost:8000/favicon.ico",
"headers": {
"host": "localhost:8000",
"connection": "keep-alive",
"sec-ch-ua-platform": "\"Windows\"",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36",
"sec-ch-ua": "\"Not;A=Brand\";v=\"99\", \"Brave\";v=\"139\", \"Chromium\";v=\"139\"",
"sec-ch-ua-mobile": "?0",
"accept": "image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8",
"sec-gpc": "1",
"accept-language": "pt-BR,pt;q=0.7",
"sec-fetch-site": "same-origin",
"sec-fetch-mode": "no-cors",
"sec-fetch-dest": "image",
"referer": "http://localhost:8000/",
"accept-encoding": "gzip, deflate, br, zstd",
"cookie": "UserEmail=admin%40oriustecnologia.com.br; UserPassword=master%40orius; UserRemember=1"
}
},
{
"method": "GET",
"url": "http://127.0.0.1:8000/api/v1/administrativo/usuarios",
"headers": {
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYWNjZXNzLXRva2VuIiwiZXhwIjoxNzU1Mjc0NTQ3LCJpYXQiOjE3NTQ1Nzk3NDcsImRhdGEiOiJ7J3VzdWFyaW9faWQnOiAxMjM0NjcsICdsb2dpbic6ICdrZXZlbicsICdub21lJzogJ2tldmVuJ30ifQ.SQbk5ZKE2uzfv4IKWD8Qoet06E6qwq-Z62tP7PTE6zE",
"user-agent": "PostmanRuntime/7.45.0",
"accept": "*/*",
"postman-token": "f2d0a384-4da7-43d9-92aa-7b7a6153623b",
"host": "127.0.0.1:8000",
"accept-encoding": "gzip, deflate, br",
"connection": "keep-alive"
}
},
{
"method": "GET",
"url": "http://127.0.0.1:8000/api/v1/administrativo/usuarios/",
"headers": {
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYWNjZXNzLXRva2VuIiwiZXhwIjoxNzU1Mjc0NTQ3LCJpYXQiOjE3NTQ1Nzk3NDcsImRhdGEiOiJ7J3VzdWFyaW9faWQnOiAxMjM0NjcsICdsb2dpbic6ICdrZXZlbicsICdub21lJzogJ2tldmVuJ30ifQ.SQbk5ZKE2uzfv4IKWD8Qoet06E6qwq-Z62tP7PTE6zE",
"user-agent": "PostmanRuntime/7.45.0",
"accept": "*/*",
"postman-token": "f2d0a384-4da7-43d9-92aa-7b7a6153623b",
"accept-encoding": "gzip, deflate, br",
"connection": "keep-alive",
"referer": "http://127.0.0.1:8000/api/v1/administrativo/usuarios",
"host": "127.0.0.1:8000"
}
}
]