Skip to content

Commit

Permalink
fix: @name for recursion (#1948)
Browse files Browse the repository at this point in the history
* restore: @name parsing behavior

* feat: add schema name if there is a recursion

Co-authored-by: njacob1001 <[email protected]>
  • Loading branch information
njacob1001 and njacob1001 authored Dec 20, 2024
1 parent 04b5bc8 commit 2138705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ func (parser *Parser) ParseDefinition(typeSpecDef *TypeSpecDef) (*Schema, error)
parser.debug.Printf("Skipping '%s', recursion detected.", typeName)

return &Schema{
Name: typeName,
Name: typeSpecDef.SchemaName,
PkgPath: typeSpecDef.PkgPath,
Schema: PrimitiveSchema(OBJECT),
},
Expand Down

0 comments on commit 2138705

Please sign in to comment.