the-bed-stack icon indicating copy to clipboard operation
the-bed-stack copied to clipboard

Improve schema/types names

Open yamcodes opened this issue 9 months ago • 1 comments

Clear and concise description of the problem

We should fix the schemas and type names because we're not happy how they'e called across the codebase.

Suggested solution

Making them the same, in PascalCase mostly, and without using the suffix Schema.

Basically follow colinhacks: https://github.com/colinhacks/zod/pull/3285#issuecomment-1998639354

Alternative

  • Do nothing and leave the names as they are, but we won't be too happy about it.
  • Choose a different naming scheme.

Additional context

https://github.com/agnyz/bedstack/pull/129#issuecomment-2730297303 https://github.com/agnyz/bedstack/pull/129#issuecomment-2730370084

Validations

  • [x] Read the Contributing Guide.
  • [x] Read the README.md.
  • [x] Check that there isn't already an issue that requests the same feature.

yamcodes avatar Mar 18 '25 20:03 yamcodes

@Hajbo FYI - added this issue so it's easy to track. Naturally this is outside of the roadmap

yamcodes avatar Mar 18 '25 20:03 yamcodes

This is one of the biggest reasons for the Layered Architecture and is solved by it

yamcodes avatar Jun 13 '25 17:06 yamcodes