Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALFREDAPI-565: Update swagger doc for /upload metadata #237

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WimCrols
Copy link
Collaborator

@WimCrols WimCrols commented Dec 19, 2024

Fixes https://xenitsupport.jira.com/browse/ALFREDAPI-565

  • Is CHANGELOG.md extended?
  • Does this PR avoid breaking the API?
    Breaking changes include adding, changing or removing endpoints and/or JSON objects used in requests and responses.
  • Are all Alfresco services wired via ServiceRegistry (and not per service)?
  • Does the PR comply to REST HTTP result codes policy outlined in the user guide?
  • Is error handling done through a method annotated with @ExceptionHandler in the webscript classes?
  • Does the PR follow our coding styleguide and other active procedures?
  • Is usage of this. prefix avoided?

See README.md for full explanation.

@@ -636,11 +636,14 @@
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/NodeInfo"
"$ref": "#/definitions/MetadataChanges"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect, you'd need to change the type property in the metadata entry of parameters.
The returntype is unchanged.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof, big mistake, indeed.

However, it seems to be impossible to use complex types (from https://swagger.io/docs/specification/v2_0/describing-parameters/#form-parameters):

Form parameters are defined as in: formData. They can only be primitives (strings, numbers, booleans) or arrays of primitives (meaning you cannot use a $ref as the items value).

I will roll back this change, of course.

@WimCrols WimCrols force-pushed the ALFREDAPI-565_multipartformdatacontenttype branch from ce26f36 to 0da1a6d Compare January 7, 2025 09:15
Copy link

sonarqubecloud bot commented Jan 7, 2025

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