nextcloud / nextcloud/openapi-extractor
Reuse responses
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 11
- Forks
- 4
- Avg merge
- 10h 18m
- Merged PRs (30d)
- 8
Description
https://spec.openapis.org/oas/latest.html#componentsObject allows us to define a response schema that can be reused. Right now the same schema is copied multiple times if two status codes on an endpoint share the same schema. This could be avoided by reusing these responses.
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 locating the response-generation entry point in this PHP extractor and read the OpenAPI Components Object section linked in the issue. Check how responses are emitted when two status codes share a schema; done means the generated specification reuses a shared response or schema instead of copying it, with the resulting OpenAPI output verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi, php
- Domain
- api, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100