Skip to main content

resolve_response

Function resolve_response 

Source
pub fn resolve_response(
    method: &str,
    combined_defs: &Map<String, Value>,
) -> Result<Option<String>>
Expand description

Resolves a method’s response type name: RESPONSE_OVERRIDES, then the {PascalMethod}Response naming convention, then a fuzzy token-subset match, then KNOWN_VOID_RESPONSE_METHODS. Hard-fails (matching the Python original’s resolve_response) if none of those resolve it, so a future codex schema change with a genuinely new naming shape breaks the build loudly instead of silently generating wrong code.