Interface for RFC specific field members
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 67
- Forks
- 8
- Avg merge
- 26m
- Merged PRs (30d)
- 1
Description
Feature Request
| Q | A |
|---|---|
| New Feature | yes |
| RFC | yes |
| BC Break | no |
Summary
An additional interface with some getters for the RFC specific field members (chapter 3.1) would be very nice to have.
I have often mistyped on those fields. Some interface which let a developer implement specific methods to be strict about it would be great.
Just of the top of my head...
interface StrictApiProblemInterface
{
public function getType(): ?string
public function getTitle(): string
public function getStatus(): ?int
public function getDetail(): ?string
public function getExtensions(): array
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading RFC 7807 §3.1 and the proposed StrictApiProblemInterface signatures in the issue. Check how the project currently represents RFC-specific fields, then verify that each getter maps to the specified member without introducing a BC break.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100