[api] wire engine endpoints to rgxr-core #15

Closed
opened 2026-10-23 22:47:28 -05:00 by yuuhikaze · 0 comments
Owner

status: rgxr-core exposes the full public API in PR #14. crates/rgxr-api/src/engine.rs still returns 501 engine pending; each handler has its commented one-line call site ready to swap in. Error mapping already fits: FaError::Regex → invalid_regex, everything else → invalid_fa.

Two notes:

  • rgxr_core::union/intersection also enforce same-alphabet and return FaError::Other (→ 400 invalid_fa) on mismatch
  • fa_to_regex on an empty-language FA returns FaError::Other (→ 400 invalid_fa): the syntax has no ∅

Blocked on #14 merging.

status: rgxr-core exposes the full public API in PR #14. `crates/rgxr-api/src/engine.rs` still returns 501 `engine pending`; each handler has its commented one-line call site ready to swap in. Error mapping already fits: `FaError::Regex` → `invalid_regex`, everything else → `invalid_fa`. Two notes: - `rgxr_core::union`/`intersection` also enforce same-alphabet and return `FaError::Other` (→ 400 `invalid_fa`) on mismatch - `fa_to_regex` on an empty-language FA returns `FaError::Other` (→ 400 `invalid_fa`): the syntax has no ∅ Blocked on #14 merging.
Ghost added this to the SCRUM project 2026-10-23 22:47:55 -05:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
k8s-services/rgxr#15
No description provided.