Skip to content

fix invalid location - #1666

Open
omursahin wants to merge 1 commit into
masterfrom
fix-invalid-location
Open

fix invalid location#1666
omursahin wants to merge 1 commit into
masterfrom
fix-invalid-location

Conversation

@omursahin

Copy link
Copy Markdown
Collaborator

No description provided.

@omursahin
omursahin requested a review from arcuri82 August 10, 2026 10:33
/**
* Verbs that the Location follow-up call may use (see HttpSemanticsService).
*/
private val LOCATION_FOLLOWUP_VERBS = setOf(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will not work as soon as we introduce the new verb QUERY.
add a TODO stating to update when QUERY is going to be added

}
}

private fun declaredPathMatching(resolvedPath: String): RestPath? {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a function like this should be in CallGraphService

private fun followUpVerbForLocation(location: String): HttpVerb {
val pathOnly = locationPathOnly(location) ?: return HttpVerb.GET
val declaredPath = declaredPathMatching(pathOnly) ?: return HttpVerb.GET
val verbs = actionDefinitions.filter { it.path == declaredPath }.map { it.verb }.toSet()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could use endpointsForPath in CallGraphService

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