-
-
Notifications
You must be signed in to change notification settings - Fork 15
Group related canonicalizer rules #731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -108,7 +108,6 @@ auto WALK_UP_IN_PLACE_APPLICATORS(const JSON &root, const SchemaFrame &frame, | |
| } | ||
|
|
||
| #include "canonicalizer/additional_items_implicit.h" | ||
| #include "canonicalizer/additional_properties_implicit.h" | ||
| #include "canonicalizer/comment_drop.h" | ||
| #include "canonicalizer/const_as_enum.h" | ||
| #include "canonicalizer/dependencies_to_any_of.h" | ||
|
|
@@ -132,7 +131,6 @@ auto WALK_UP_IN_PLACE_APPLICATORS(const JSON &root, const SchemaFrame &frame, | |
| #include "canonicalizer/exclusive_minimum_integer_to_minimum.h" | ||
| #include "canonicalizer/extends_to_array.h" | ||
| #include "canonicalizer/if_then_else_implicit.h" | ||
| #include "canonicalizer/implicit_array_keywords.h" | ||
| #include "canonicalizer/implicit_contains_keywords.h" | ||
| #include "canonicalizer/implicit_object_keywords.h" | ||
| #include "canonicalizer/items_implicit.h" | ||
|
|
@@ -143,13 +141,10 @@ auto WALK_UP_IN_PLACE_APPLICATORS(const JSON &root, const SchemaFrame &frame, | |
| #include "canonicalizer/min_items_given_min_contains.h" | ||
| #include "canonicalizer/min_length_implicit.h" | ||
| #include "canonicalizer/min_properties_covered_by_required.h" | ||
| #include "canonicalizer/min_properties_implicit.h" | ||
| #include "canonicalizer/minimum_can_equal_integer_fold.h" | ||
| #include "canonicalizer/minimum_can_equal_true_drop.h" | ||
| #include "canonicalizer/multiple_of_implicit.h" | ||
| #include "canonicalizer/optional_property_implicit.h" | ||
| #include "canonicalizer/properties_implicit.h" | ||
| #include "canonicalizer/property_names_implicit.h" | ||
| #include "canonicalizer/recursive_anchor_false_drop.h" | ||
| #include "canonicalizer/required_property_implicit.h" | ||
| #include "canonicalizer/type_array_to_any_of.h" | ||
|
|
@@ -277,8 +272,6 @@ auto add(SchemaTransformer &bundle, const AlterSchemaMode mode) -> void { | |
| bundle.add<UnevaluatedPropertiesToAdditionalProperties>(); | ||
| bundle.add<IfThenElseImplicit>(); | ||
| bundle.add<ImplicitObjectKeywords>(); | ||
| bundle.add<PropertyNamesImplicit>(); | ||
| bundle.add<ImplicitArrayKeywords>(); | ||
| bundle.add<ImplicitContainsKeywords>(); | ||
| bundle.add<ExtendsToArray>(); | ||
| bundle.add<DisallowToArrayOfSchemas>(); | ||
|
|
@@ -355,11 +348,9 @@ auto add(SchemaTransformer &bundle, const AlterSchemaMode mode) -> void { | |
| bundle.add<MinItemsGivenMinContains>(); | ||
| bundle.add<MinPropertiesCoveredByRequired>(); | ||
| bundle.add<MinLengthImplicit>(); | ||
| bundle.add<MinPropertiesImplicit>(); | ||
| bundle.add<MultipleOfImplicit>(); | ||
| bundle.add<DivisibleByImplicit>(); | ||
| bundle.add<MaxDecimalImplicit>(); | ||
| bundle.add<PropertiesImplicit>(); | ||
| bundle.add<ItemsImplicit>(); | ||
| } | ||
|
|
||
|
|
@@ -427,7 +418,6 @@ auto add(SchemaTransformer &bundle, const AlterSchemaMode mode) -> void { | |
| bundle.add<EmptyDependenciesDrop>(); | ||
| bundle.add<EmptyDependentSchemasDrop>(); | ||
| bundle.add<EmptyDependentRequiredDrop>(); | ||
| bundle.add<AdditionalPropertiesImplicit>(); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing Severity: high Other Locations
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage. |
||
| bundle.add<AdditionalItemsImplicit>(); | ||
| bundle.add<RequiredPropertyImplicit>(); | ||
| bundle.add<OptionalPropertyImplicit>(); | ||
|
|
||
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By folding
PropertyNamesImplicit(and related rules) intoImplicitObjectKeywords, the standalone rule names disappear from traces and can’t be individually excluded/removed viaSchemaTransformer::remove/x-exclude. If external users rely on those granular rule names, this becomes a user-visible behavior change.Severity: medium
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.