Skip to content

Schema Generation: Extract Method for adjusting manual fields #5632

Closed
@carltongibson

Description

@carltongibson

Ref #5621 (comment)
Ref #5630

The logic to add/adjust manual_fields is currently inline in get_link:

if self._manual_fields is not None:
by_name = {f.name: f for f in fields}
for f in self._manual_fields:
by_name[f.name] = f
fields = list(by_name.values())

This should be extracted to a separate method so the logic can be re-used when users are overriding get_link

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions