Skip to content
This repository was archived by the owner on Oct 27, 2022. It is now read-only.
This repository was archived by the owner on Oct 27, 2022. It is now read-only.

Fix or comment util.ValidateEndpoint explicit method setting #20

@grayside

Description

@grayside

Current Behavior

In looking over util.ValidateEndpoints, it appears that some kind of hard-coding of HTTP requests is being done, and assumptions are made that all the HTTP methods are explicitly supported.

Expected Behavior

Option 1: Configuration-driven approach

For each operation:
  For each HTTP method:
    Send HTTP request

Option 2: Add more inline comments explaining what's happening and why. The current function states it's iterating over all HTTP methods but does not explain why, the "why" is the important part. Also worth mentioning: does this assume every method is defined, or are default definitions of methods such as OPTIONS coming through about being assigned to expect an HTTP 405 response?


This issue affects two categories in my review of the repository:

  • Experience: Does the project provide a good experience to users?
  • Internals: Is the implementation efficient, effective, and maintainable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions