Skip to content

Conversation

@JoshuaHarris391
Copy link
Collaborator

No description provided.

… and update tests accordingly.

- Modified get_schema_version to use the instance schema if no schema is provided.
- Added assertion in test_resolve_schema to verify the default schema version.
- Refactored imports in test_validate for clarity and added a new test for resolved schema version.
- Replaced the Validate class with standalone functions for validating JSON objects and lists against a schema.
- Introduced `validate_object`, `validate_list_dict`, and `pull_schema` functions to streamline validation processes.
- Updated error handling to provide more informative messages when validation fails.
- Added unit tests for new validation functions to ensure correctness and handle edge cases, including missing 'type' keys.
- Improved logging in the `validate_object` function to provide detailed debug information about validation processes, including error counts and specific validation errors.
- Updated unit tests to reflect changes in validation logic, including the addition of a required `submitter_id` field and handling of validation errors for various object types.
- Added a new test to capture a real-world validation error related to Agilent instruments.
- Introduced `version_two.ipynb` to demonstrate the schema validation process using the `gen3_validator` library.
- Implemented logging for schema resolution and validation errors, including detailed output for instrument type validation.
- Included example data for testing validation against the specified schema.
- Removed outdated code snippets and sections related to parsing and testing linkage.
- Updated the usage examples for the `Validate` and `ValidateStats` classes to reflect the latest validation processes.
- Added new examples demonstrating the validation of a list of dictionaries against a schema.
- Improved clarity and organization of the documentation for better user understanding.
- Added a comprehensive section on validating JSON data objects against the gen3 JSON schema.
- Included example code demonstrating schema resolution and validation processes using the gen3_validator library.
- Provided example output for validation results to improve user understanding.
…and enhanced validation examples

- Added a new "Quickstart" section to the README with example code for schema resolution and validation.
- Updated the usage documentation to reflect changes in data structure and validation output.
- Improved clarity of example data and validation results to aid user understanding.
…fined validation error messages

- Set execution count for the code cell to 4.
- Enhanced validation error messages to provide clearer feedback on schema validation failures, including specific invalid keys and types.
@JoshuaHarris391 JoshuaHarris391 merged commit d7856b6 into main Dec 12, 2025
2 checks passed
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.

2 participants