Skip to content

Conversation

@JoshuaHarris391
Copy link
Collaborator

No description provided.

- Introduced `format_array` function to handle properties of type 'array' in the schema, ensuring they conform to Gen3 specifications.
- Updated `construct_props` to apply the new array formatting.
- Modified `input_schema.py` to include 'array' as a valid property type.
- Enhanced tests to validate the new array property handling in the converter.
- Introduced `type_array_needs_items` method to ensure properties of type 'array' include an 'items' property.
- Updated the `RuleValidator` class to call this new validation method during initialization.
- Enhanced tests in `test_rule_validator.py` to cover scenarios for arrays with and without 'items' properties, ensuring proper error handling and validation logic.
- Added a new property `lipid_species` in `input_example.yml` to test the array validation functionality.
…tebook

- Changed the execution count from 2 to 3 for the relevant code cell.
- Replaced the call to `data_file_props_need_data_props()` with `type_array_needs_items()` to align with the updated validation logic.
@JoshuaHarris391 JoshuaHarris391 merged commit 0faa201 into main Oct 23, 2025
2 checks passed
@JoshuaHarris391 JoshuaHarris391 deleted the fix-array-should-have-items branch October 23, 2025 05:02
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