Skip to content

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

Open
Ewgna wants to merge 1 commit into
CVEProject:devfrom
Ewgna:bugfix/legacy-org-openapi-responses
Open

Resolves issue 1941, Corrects legacy organization response schemas#1975
Ewgna wants to merge 1 commit into
CVEProject:devfrom
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

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.

1 participant