-
-
Notifications
You must be signed in to change notification settings - Fork 846
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
Swagger UI always adds "additionalProp1": {}
to the example value
#3883
Comments
FYI I am getting this issue too, but with version |
I could not find documentation on why this was added but every schema now has We got rid of it by setting
|
Having this same problem on |
Closed by #3888. |
Hi team! I'm still getting the error, api-platform v2.5.8, I just double-check with a fresh new installation and it is still there the additionalProp1 ... any solution to this?? Cheers! |
Please use the dev version (for now): |
I have the same problem, it is somewhat annoying when providing the documentation of my api to external clients, reading the thread I did not understand which is the correct solution to address, if "allow_extra_attributes" = false which becomes something tedious and repetitive of do or use the dev version which I don't think is advisable for a project that adds new functionalities while it is already in production. |
@juanpablomorenomartin the fix is to upgrade to the 2.5-dev (which is very stable), as pointed out by @alanpoulain, or to wait for the next tag (probably beginning of January). |
API Platform version(s) affected: 2.6.0 alpha
Description
How to reproduce
Just install the distribution. It does that on any class mapped with API Resource.
Possible Solution
We have no occurrences of
additionalProp1
in our code base, but they are occurences in Swagger UI's code base. It maybe caused by our generated JSON Schema (https://github.com/api-platform/core/blob/master/src/JsonSchema/SchemaFactory.php) or by a bug in Swagger UI.The text was updated successfully, but these errors were encountered: