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

JsonSchema.FromJsonAsync as synchronous method #1727

Open
ph1l1pF opened this issue Sep 4, 2024 · 0 comments
Open

JsonSchema.FromJsonAsync as synchronous method #1727

ph1l1pF opened this issue Sep 4, 2024 · 0 comments

Comments

@ph1l1pF
Copy link

ph1l1pF commented Sep 4, 2024

I'd like a sync variant of JsonSchema.FromJsonAsync, as there are scenarios in which an async call is not possible.

var schema = JsonSchema.FromJson(myJsonString);

Currently, the only work around is:

var schema = JsonSchema.FromJsonAsync(myJsonString).Result;

which is quite ugly.

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

1 participant