medly / medly/apifi

Do not use tags for grouping controllers

Open
#26 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

design discussion required good first issue hacktoberfest
Dominant language
Kotlin
Stars
4
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Problem:
Currently, operations and paths are clubbed into a controller based on tags. This approach has some limitations:

  1. tags are not mandatory in spec yml and we haven't mandated them in apifi too
  2. tags are an array. So mapping that to one controller doesn't sound right
  3. currently, if tags are not specified, no controller is generated. Since we are not mandating it, controller should get generated with default Path's name.

We can use operationId by some convention with a delimiter to signify controller name or controller group.

Things to be taken care of once issue is resolved:

  1. Add a migration doc to let users know how to move from tags to operationId.
  2. Release a new version.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how tags currently group operations and paths into generated controllers, then inspect how operationId values are handled. Define and document the operationId grouping convention, including the default controller name when tags are absent. Update the migration documentation and verify the release requirements are addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.