-
Notifications
You must be signed in to change notification settings - Fork 43
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
Set "REQUIRED" field behaviour flag for fields in minder protos #4952
Labels
enhancement
New feature or request
Comments
I'm starting from the top of the
|
10 tasks
eleftherias
added a commit
to eleftherias/minder
that referenced
this issue
Nov 27, 2024
eleftherias
added a commit
to eleftherias/minder
that referenced
this issue
Nov 27, 2024
eleftherias
added a commit
that referenced
this issue
Nov 27, 2024
eleftherias
added a commit
to eleftherias/minder
that referenced
this issue
Nov 27, 2024
10 tasks
PR created for:
|
eleftherias
added a commit
that referenced
this issue
Nov 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For clients using the openAPI spec, it would be useful to know which input fields are required and which output fields are non-nullable.
We can use the
REQUIRED
field_behaviour flag to annotate these types of fields.For example by setting the behaviour to
REQUIRED
, the typescipt generated field is non-optional:produces the following typescipt type (note that it does not have a
?
marking it as optional):This task involves finding all the fields that are both required as input AND non-nullable as output.
We can only set the
REQUIRED
flag on fields that are both required on input AND never null on output.If a field is required on input, but may be null on output, we cannot use this flag.
The text was updated successfully, but these errors were encountered: