Skip to content

Hotfix/support all engines#9

Merged
doug-helios merged 2 commits into
epic/pysoffrom
hotfix/support_all_engines
Sep 15, 2025
Merged

Hotfix/support all engines#9
doug-helios merged 2 commits into
epic/pysoffrom
hotfix/support_all_engines

Conversation

@doug-helios
Copy link
Copy Markdown
Contributor

No description provided.

@doug-helios doug-helios merged commit e7fc86b into epic/pysof Sep 15, 2025
@doug-helios doug-helios deleted the hotfix/support_all_engines branch September 15, 2025 17:16
doug-helios added a commit that referenced this pull request Oct 2, 2025
* feat: enable all feature on release

* fix: release args

---------

Co-authored-by: dougc95 <dougcr95@gmail.com>
smunini added a commit that referenced this pull request May 19, 2026
Per the SoF v2 spec, "invalid ViewDefinition or processing failure"
maps to 422 Unprocessable Entity. HFS REST already does this. sof-server
had a stray special case in `parse_view_definition_for_version` that
mapped `SofError::InvalidViewDefinition → ServerError::BadRequest`
(400), out of sync with the rest of the run pipeline (which already
returned 422 via the default `From<SofError>` impl).

- Remove the special case in `parse_view_definition_for_version`;
  `?`-conversion via `From<SofError>` routes through `ProcessingError`
  → 422.
- Update the common.rs test stub's serde-deserialize-error mapping to
  match (was 400; now 422).

Tests:
- `test_invalid_view_definition_maps_to_422` (in-handler unit) feeds a
  type-mismatched select to `parse_view_definition_for_version`,
  confirms the returned ServerError is `ProcessingError`, and renders
  it via `into_response` to assert the HTTP status is 422.
- `test_invalid_view_definition_returns_422` (integration) POSTs the
  same bad body through the full handler and asserts the response
  status is 422 with an OperationOutcome.
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