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

OpenAPI: how to get string marked as Required #148

Open
ArryMatt opened this issue Mar 25, 2020 · 1 comment
Open

OpenAPI: how to get string marked as Required #148

ArryMatt opened this issue Mar 25, 2020 · 1 comment

Comments

@ArryMatt
Copy link

Firstly, I'm still on version 3.0.17 and will be here for a while on this project. I do want to upgrade, just it's not the correct time for this project.

I have a delete command that has a string of SerialNumber that I want to be marked in the OpenAPI as required and I can't make it so.

I tried:
[Required]
[Key]
Fluent validator of NotNull & NotEmpty
[JsonProperty(Required = Required.Always)]

I've been through the code and am at a loss.

What am I missing?

@MarkusBernhardt
Copy link
Contributor

Hi Arry,

3.0.17 is too old for that.

This was merged in with #102 into v4.0.56-beta.4.
#142 would bring more OpenAPI functionality, but not merged in right now.

Cheers,
Markus

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

2 participants