Skip to content

Commit 6ab625e

Browse files
committed
Move camel_case and snake_case from codegen to core
1 parent 55d0406 commit 6ab625e

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

src/asyncapi_python/amqp/operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
)
2323
from pydantic import BaseModel
2424
from dataclasses import dataclass, field
25-
from asyncapi_python_codegen.generators.amqp.utils import snake_case
25+
from asyncapi_python.utils import snake_case
2626

2727
ExchangeType = Literal["topic", "direct", "fanout", "default", "headers"]
2828

src/asyncapi_python_codegen/generators/amqp/utils.py renamed to src/asyncapi_python/utils.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
# Copyright 2024 Yaroslav Petrov <yaroslav.v.petrov@gmail.com>
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
15-
161
from re import sub
172
from typing import Literal
183

src/asyncapi_python_codegen/generators/amqp/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
import asyncapi_python_codegen.document as d
2727
from asyncapi_python_codegen.document.utils import populate_jsonschema_defs
28-
from asyncapi_python_codegen.generators.amqp.utils import snake_case
28+
from asyncapi_python.utils import snake_case
2929

3030
from datamodel_code_generator.__main__ import main as datamodel_codegen
3131

0 commit comments

Comments
 (0)