Closed burnettk closed 2 weeks ago
spiffworkflow-backend/tests/data/bpmn_unit_test_process_models/expected-to-fail/process_group.json (1)
`3-3`: The addition of the `garbage` field is appropriate for testing the new validation mechanisms.spiffworkflow-backend/src/spiffworkflow_backend/models/process_group.py (1)
`59-62`: The implementation of `get_valid_properties` method is efficient and maintainable, leveraging dataclass fields to dynamically list valid properties.spiffworkflow-backend/src/spiffworkflow_backend/services/process_model_service.py (1)
`563-566`: The implementation of `restrict_dict` method correctly utilizes `get_valid_properties` to filter dictionary keys, enhancing data integrity.
avoids runtime errors when process_group.json files have unexpected keys.
mitigates https://github.com/sartography/gsa-process-models/issues/1
Summary by CodeRabbit