sanic-api 0.5.1__tar.gz → 0.5.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sanic-api
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: Sanic 框架实用API工具集,拥有自动生成文档、参数校验、配置的导入、日志功能的优化等功能,更好的助力接口的开发
5
5
  Project-URL: homepage, https://github.com/x-haose/sanic-api
6
6
  Project-URL: repository, https://github.com/x-haose/sanic-api
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sanic-api"
3
- version = "0.5.1"
3
+ version = "0.5.2"
4
4
  keywords = ["Sanic", "异步", "Sanic扩展"]
5
5
  description = "Sanic 框架实用API工具集,拥有自动生成文档、参数校验、配置的导入、日志功能的优化等功能,更好的助力接口的开发"
6
6
  readme = "README.md"
@@ -1,3 +1,3 @@
1
1
  from sanic_api.logger.extension import LoggerExtend
2
2
 
3
- __version__ = "0.5.1"
3
+ __version__ = "0.5.2"
@@ -60,7 +60,7 @@ class JsonRespSettings(BaseModel):
60
60
  data_field_name: str = Field(default="data")
61
61
 
62
62
 
63
- class CrosSettings(BaseModel):
63
+ class CorsSettings(BaseModel):
64
64
  """
65
65
  跨域设置
66
66
  """
@@ -99,7 +99,7 @@ class DefaultSettings(SettingsBase):
99
99
  access_log: bool = Field(default=True)
100
100
 
101
101
  # 跨域设置
102
- cors: CrosSettings = Field(default_factory=CrosSettings)
102
+ cors: CorsSettings = Field(default_factory=CorsSettings)
103
103
 
104
104
  # 哨兵连接dsn,如果存在则会把错误信息推送给哨兵
105
105
  sentry_dsn: HttpUrl | None = Field(default=None)
File without changes
File without changes
File without changes