-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Don't configure JsonOptions by default #16837
Conversation
I have two notes about this:
|
I would say this is a bug in 2.0 and should be fixed. If someone already build on the top of the bug, we should fix the bug and release it. We should document it as a breaking change due to a bug.
Not sure but I added it in #15460 |
I suggest deprecating the type with an error when someone uses it, please no more breaking changes as we follow SemVer |
the type in already internal so it won't break anyone. It is would break their behavior if they are using API or endpoint on 2.0 that returns ContentItem. Again, this is a bug in 2.0 and should be addressed as a bug. |
You're right I though it's a public type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is a breaking change, but still deserves a note in the release notes. I don't understand though how #15460 fixed originally, since it wasn't about web APIs.
src/OrchardCore.Modules/OrchardCore.Contents/Endpoints/Api/CreateEndpoint.cs
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Contents/Endpoints/Api/GetEndpoint.cs
Show resolved
Hide resolved
How did #15460 fix its issue originally (since it wasn't about web APIs), and how does this not break what it fixed? |
So, how did #15460 fix its issue originally (since it wasn't about web APIs), and how does this not break what it fixed? |
I don't think it fixed anything. Look at the comment here #15416 (comment) it sound as he just used a different options. |
Ah I see. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the APIs with https://github.com/Lombiq/Orchard-Core-API-Client and didn't notice any issues.
Co-authored-by: Zoltán Lehóczky <zoltan.lehoczky@lombiq.com>
Co-authored-by: Zoltán Lehóczky <zoltan.lehoczky@lombiq.com>
Fix #16831