Repository navigation
Feat/validate with document type - #1323
Merged
QuantumExplorer merged 16 commits intoAug 24, 2023
Merged
Conversation
# Conflicts: # packages/rs-dpp/src/data_contract/document_type/v0/mod.rs # packages/rs-dpp/src/data_contract/methods/mod.rs # packages/rs-dpp/src/validation/json_schema_validator/methods/get_schema_compilation_options/mod.rs # packages/rs-dpp/src/validation/json_schema_validator/methods/validate_data_contract_schema/v0/mod.rs # packages/rs-dpp/src/validation/mod.rs
While refactoring, removed multiple redundant methods in the JsonSchemaValidatorVersions of the DPPValidationVersions struct in the rs-platform-version package. This was done to improve efficiency of the validation process. Also, removed unused imports from multiple other packages including rs-dpp and rs-drive. Fixed the test cases to adapt to these changes and renamed variables for better clarity. In the DataContractFramework, the code has been optimized to improve the efficiency and readability. Also added a new DataContractMethodVersions struct in mocks/v3_test.rs for structured handling of data contract methods.
This commit includes several minor modifications across numerous files primarily aimed at code cleanliness and maintainability. Unnecessary dependencies that were not used have been removed. This includes the removal of 'TryFrom', 'ConsensusError', 'DocumentType', 'StatelessJsonSchemaLazyValidator', 'SimpleConsensusValidationResult' and others. These changes streamline the codebase by removing unused dependencies and hence contribute to improved readability and easier maintenance.
The import of validation and conversion related features have been changed to be conditional based on whether the "validation" feature is enabled. Modification is done in several files: - Three files are updated to include validation feature under conditional import. - `rs-dpp/Cargo.toml` is updated with 'document-value-conversion' under 'validation' feature. - Imports in `identity_factory.rs` is updated to include `IdentityPlatformValueConversionMethodsV0` inside a conditional validation check. These changes bring import calls inside the relevant scopes, reducing memory overhead when validation feature is not
# Conflicts: # packages/rs-dpp/src/identity/identity_factory.rs
|
|
||
| impl Index { | ||
| /// Check to see if two objects are conflicting | ||
| pub fn objects_are_conflicting(&self, object1: &ValueMap, object2: &ValueMap) -> bool { |
Member
There was a problem hiding this comment.
No, we shouldn't remove this... this could be useful for outside libraries even.
QuantumExplorer
changed the base branch from
feat/versioningV3
to
v0.25-dev-nightly
August 20, 2023 16:20
QuantumExplorer
changed the base branch from
v0.25-dev-nightly
to
feat/versioningV3
August 20, 2023 16:23
QuantumExplorer
changed the base branch from
feat/versioningV3
to
feat/versioningV4
August 20, 2023 16:25
QuantumExplorer
marked this pull request as ready for review
August 24, 2023 07:54
QuantumExplorer
added a commit
that referenced
this pull request
Aug 24, 2023
Co-authored-by: Quantum Explorer <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue being fixed or feature implemented
What was done?
How Has This Been Tested?
Breaking Changes
Checklist:
For repository code-owners and collaborators only