Skip to content

Resolves issue 1941, Corrects legacy organization response schemas - #1975

Merged
david-rocca merged 2 commits into
CVEProject:2.8.6-releasefrom
Ewgna:bugfix/legacy-org-openapi-responses
Aug 28, 2026
Merged

Resolves issue 1941, Corrects legacy organization response schemas#1975
david-rocca merged 2 commits into
CVEProject:2.8.6-releasefrom
Ewgna:bugfix/legacy-org-openapi-responses

Conversation

@Ewgna

@Ewgna Ewgna commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Closes Issue 1941

Summary

Updates the OpenAPI contract for legacy organization endpoints so it matches actual behavior; GET /api/org and POST /api/org return only legacy-formatted organization responses, registry-formatted responses no longer listed as an alternative

Important Changes

src/controller/org.controller/index.js

  • Replaced the oneOf response schemas for GET /org and POST /org with legacy version

api-docs/openapi.json

  • Regenerated the OpenAPI with legacy-only responses

test/unit-tests/org/openapiOrgResponseTest.js

    • Likely unneeded, short test to confirm both document the correct legacy response

Testing

  • Ran the OpenAPI response unit test.
  • Ran ESLint for the updated controller and test files.
  • Verified the generated OpenAPI JSON is valid and contains the expected response schemas.

Notes

  • No runtime behavior is changed

@david-rocca
david-rocca changed the base branch from dev to 2.8.6-release August 27, 2026 15:04
@david-rocca
david-rocca merged commit 39e4a7c into CVEProject:2.8.6-release Aug 28, 2026
9 checks passed
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