Skip to content

Commit 2e2fe91

Browse files
committed
fix conflict
1 parent 3e49ba1 commit 2e2fe91

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/py_avro_schema/_schemas.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,9 @@ def _wrap_as_record(self, inner_schema: JSONObj, names: NamesType) -> JSONType:
321321
Handles deduplication via ``names``.
322322
"""
323323
record_name = _avro_name_for_type(_type_from_annotated(self.py_type))
324-
fullname = f"{self.namespace}.{record_name}" if self.namespace else record_name
325-
if fullname in names:
326-
return fullname
327-
names.append(fullname)
324+
if record_name in names:
325+
return record_name
326+
names.append(record_name)
328327
record_schema = {
329328
"type": "record",
330329
"name": record_name,
@@ -333,8 +332,6 @@ def _wrap_as_record(self, inner_schema: JSONObj, names: NamesType) -> JSONType:
333332
{"name": REF_DATA_KEY, "type": inner_schema},
334333
],
335334
}
336-
if self.namespace:
337-
record_schema["namespace"] = self.namespace
338335
return record_schema
339336

340337

0 commit comments

Comments
 (0)