Skip to content

Commit

Permalink
Changes:
Browse files Browse the repository at this point in the history
- release notes
- enum definitions
  • Loading branch information
devkral committed Dec 18, 2024
1 parent 7d2b325 commit 22f4732
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions docs/en/docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ hide:

- Allow passing extensions as string.

### Fixed

- OpenAPI responses.
- Enum definitions.

## 3.6.0

### Added
Expand Down
12 changes: 6 additions & 6 deletions esmerald/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def __repr__(self) -> str:
return str(self)


class HttpMethod(StrEnum, Enum):
class HttpMethod(StrEnum):
GET = "GET"
POST = "POST"
PUT = "PUT"
Expand All @@ -20,7 +20,7 @@ class HttpMethod(StrEnum, Enum):
TRACE = "TRACE"


class MediaType(StrEnum, Enum):
class MediaType(StrEnum):
JSON = "application/json"
HTML = "text/html"
TEXT = "text/plain"
Expand All @@ -30,23 +30,23 @@ class MediaType(StrEnum, Enum):
OCTET = "application/octet-stream"


class OpenAPIMediaType(StrEnum, Enum):
class OpenAPIMediaType(StrEnum):
OPENAPI_YAML = "application/vnd.oai.openapi"
OPENAPI_JSON = "application/vnd.oai.openapi+json"


class EncodingType(StrEnum, Enum):
class EncodingType(StrEnum):
JSON = "application/json"
MULTI_PART = "multipart/form-data"
URL_ENCODED = "application/x-www-form-urlencoded"


class ScopeType(StrEnum, Enum):
class ScopeType(StrEnum):
HTTP = "http"
WEBSOCKET = "websocket"


class ParamType(StrEnum, Enum):
class ParamType(StrEnum):
PATH = "path"
QUERY = "query"
COOKIE = "cookie"
Expand Down

0 comments on commit 22f4732

Please sign in to comment.