-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #3094 - avoid duplicate fields in schema classes
Why: The various Schema subclasses (ArraySchema, BinarySchema, etc.) are defined such that they actually duplicate some of the fields from the Schema super class (e.g. type, format, default, etc.). This can create confusion when examining instances of these classes within a debugger as you will see two "type" fields for example, the base class' "type" field will be set to null and the subclass' "type" field will be set to "array" (or "binary", or "boolean", etc.). We have similar issues with the format and default fields. What: In this PR, I've fixed this by adding a protected ctor to Schema, and default ctors to the subclasses, plus I've removed some getters/setters from the subclasses that are no longer needed.
- Loading branch information
Showing
18 changed files
with
156 additions
and
824 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.