Skip to content

chore: Extract Name/Namespace/Alias/Aliases to src/schema/name.rs - #417

Merged
martin-g merged 2 commits into
mainfrom
extract-schema-name-to-its-own-module
Jan 20, 2026
Merged

martin-g merged 2 commits into
mainfrom
extract-schema-name-to-its-own-module

Conversation

@martin-g

Copy link
Copy Markdown
Member

No functional changes!

@martin-g martin-g added this to the 0.22.0 milestone Jan 20, 2026
@martin-g

Copy link
Copy Markdown
Member Author

Should I also move the Schema::name()/namespace()/aliases()/doc() methods to name.rs ?

@martin-g

Copy link
Copy Markdown
Member Author

I will push it in a separate commit, so we can revert it if it is not a good idea.

@Kriskras99 Kriskras99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to keep those functions in mod.rs. They are small and not name specific (it just extracts a field from the enum).

I also think the Documentation type alias should stay in mod.rs. It's not related to Name and is only a type alias, so it's not saving any code either.

@martin-g
martin-g force-pushed the extract-schema-name-to-its-own-module branch from d9381b6 to 4adac74 Compare January 20, 2026 09:41
@martin-g martin-g changed the title chore: Extract Name/Alias/Documentation to src/schema/name.rs chore: Extract Name/Namespace/Alias/Aliases to src/schema/name.rs Jan 20, 2026
@martin-g
martin-g merged commit 66b94cb into main Jan 20, 2026
@martin-g
martin-g deleted the extract-schema-name-to-its-own-module branch January 20, 2026 12:36
@Kriskras99 Kriskras99 mentioned this pull request Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants