Skip to content

refactor: const and enum shall have no type - #1104

Merged
jkowalleck merged 6 commits into
2.0-devfrom
2.0-dev_enum_const_no_type
Sep 14, 2026
Merged

jkowalleck merged 6 commits into
2.0-devfrom
2.0-dev_enum_const_no_type

Conversation

@jkowalleck

@jkowalleck jkowalleck commented Sep 12, 2026

Copy link
Copy Markdown
Member

schemas that have a const or enum shall not have a type.

for consts and enums, the type is not only redundant, but misleading - since the value constraints require exact match already telling the exact type.

to be clear< having a const/enum with anadditional typedoes not add any clarity, it is mere a stumbling block for future changes and downstream implementations.


progress:

  • have all const and enum adjusted, and these only.
  • have a linter test that asserts it

Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck added this to the 2.0 milestone Sep 12, 2026
jkowalleck and others added 5 commits September 14, 2026 17:52
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck
jkowalleck marked this pull request as ready for review September 14, 2026 16:34
@jkowalleck
jkowalleck requested a review from a team as a code owner September 14, 2026 16:34
@jkowalleck jkowalleck changed the title [WIP] refactor: const and enum shall have no type refactor: const and enum shall have no type Sep 14, 2026
@jkowalleck
jkowalleck merged commit 32b778e into 2.0-dev Sep 14, 2026
43 of 53 checks passed
@jkowalleck
jkowalleck deleted the 2.0-dev_enum_const_no_type branch September 14, 2026 16:36
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.

1 participant