Skip to content

Conversation

muhammadn
Copy link
Contributor

@ota42y token of appreciation for taking your time helping me. 🙏

Copy link
Owner

@ota42y ota42y left a comment

Choose a reason for hiding this comment

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

Thanks to contribution!!!!

# @return [OpenAPIParser::RequestOperation, nil]
def request_operation(http_method, request_path)
OpenAPIParser::RequestOperation.create(http_method, request_path, @path_item_finder, @config)
OpenAPIParser::RequestOperation.create(http_method, request_path, @path_item_finder, @config, servers)
Copy link
Owner

Choose a reason for hiding this comment

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

I think we don't need to pass Server Object.

The RequestOperation object for validating using Operation Object.
The Operation Object specified by path and http method so it don't care about server URL so they don't need to Server Object which define server URL.
(This object is intended to run on a server that accepts requests. This object is supposed to run on the server that accepts requests, although it can also be used on the client side.)

I think we should add validate method to Server Object and call it from OpenAPI Object.
(The client validate URL using that method before send request )

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