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

I have a question about jobject. #187

Open
seongguk92 opened this issue Sep 21, 2021 · 6 comments
Open

I have a question about jobject. #187

seongguk92 opened this issue Sep 21, 2021 · 6 comments

Comments

@seongguk92
Copy link

seongguk92 commented Sep 21, 2021

hi
@mattfrear

I'm trying to create a Jobject example using https://github.com/mattfrear/Swashbuckle.AspNetCore.Filters, but it doesn't work.
Can you show me a short example ?

image
image
image
image
image

@mattfrear
Copy link
Owner

@seongguk92
Copy link
Author

seongguk92 commented Sep 21, 2021

@mattfrear
The content of the document is what you want, but
It doesn't work.
Thank you for quick response.

Receive value as JObject for patch operation
I just want to show the example as I want it to be.
ㅠㅠㅠ_ㅠㅠㅠ

@seongguk92
Copy link
Author

image
image

@mattfrear
Copy link
Owner

Maybe try public class JObjectExample : IExamplesProvider<JObject> ?

@seongguk92
Copy link
Author

seongguk92 commented Sep 21, 2021

yes!!!
But it doesn't work. ㅠ_ㅠ
image

@onurbos
Copy link

onurbos commented Jan 7, 2022

Hi @seongguk2i, @mattfrear

You can change your method. Create a new class and define it's like this:

public Dictionary<dynamic, dynamic> YourJobjectProperty{ get; set; }

and you can use for JArray this code :

public List<Dictionary<dynamic, dynamic>> YourJArrayProperty{ get; set; }

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

No branches or pull requests

3 participants