-
Notifications
You must be signed in to change notification settings - Fork 9.1k
XML hints in the Model view show "OrderedMap" #3954
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
Comments
Yep, this is us not serializing the Immutable data correctly. I wrangled something similar in extension value display ahead of v3.5.0 last week, in this commit: b42e2a7 |
i have the same issue,, is there any solution? |
@shockey help is needed. Please, look at this issue as soon as possible. Thank you. |
There is a workaround for the bug: pass XML you need as a string, e.g. |
@bbagno In my application i see this in the models when i add XmlAttribue, XmlElement and XmlType annotations to the properties of the model... |
@shockey Can you look at this issue again? :\ |
FYI: this is still in my work queue! |
I'm using springdoc-openapi 1.4.1 and I have this xml-stuff in my swagger-ui too. |
The same, I see |
Any update here? Or hints where to look more closely? If so I could try to fix this? Maybe this here is related to swagger-api/swagger-core#3153 ? |
Hi, any update ? |
Hi, any updates or ideas how to hide this? |
I have this problem too.. is this really still a thing after 4 years?? |
Hi, I am not sure whether this issue is fixed already , You can disabling skipOperationExample flag during openapi-generator to hide the "example: OrderedMap" |
still a problem. |
Can this still be the same issue 6 years later? |
same |
bump |
Someone? we are approaching the '6 year old bug, still not fixed' anniversary day rapidly!! |
I'm affected by this, six year old bug. |
I don't have this problem anymore. I'm using this stack: springboot: 3.2.2 I still generate some of my api-objects with jaxb and so there are referenced in my openapi schema ... So from my side everything is fine meanwhile :D |
Hey Can you assign this to me? I will try to fix the issue |
Any update on this bug? I'm still seeing OrderedMap in an object example. |
Demonstration API definition
petstore.swagger.io ( using its default petstore 2.0 )
Expected Behavior
A UI indicating the XML behaviour that isn't a dump of the underlying immutablejs object. See screencap, look for OrderedMap
Current Behavior
Note:
xml: OrderedMap { "name": "photoUrl", "wrapped": true }string]
Possible Solution
A:
xml: <photoUrl></photoUrl> string]
B:
xml: <photoUrl> (wrapped) string]
Context
I noticed the word "OrderedMap" and realized this is a dump of the underlying immutablejs object. Its a fragile solution, affected by changes to the underlying object as well as how future versions of ImmutableJs convert to a string. If not very performant.
The text was updated successfully, but these errors were encountered: