You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
We attempted to implement ExactlyOneOf for a set of fields in our Resource. After make generate, both fields in the ExactlyOneOf list were marked as "required."
We are not clear on the desired behavior of setting this field. Does OpenApiV3Schema support ExactlyOneOf validation?
After code generation, these fields were both required:
dataJsonSecretRef:
description: JSON-encoded secret data to write.properties:
key:
description: The key to select.type: stringname:
description: Name of the secret.type: stringnamespace:
description: Namespace of the secret.type: stringrequired:
- key
- name
- namespacetype: objectdataStringSecretRef:
description: String that will be written as the secret data atthe given path.properties:
key:
description: The key to select.type: stringname:
description: Name of the secret.type: stringnamespace:
description: Namespace of the secret.type: stringrequired:
- key
- name
- namespacetype: objectrequired:
- dataJsonSecretRef
- dataStringSecretRef
Submitting with one field or the other returned validation errors for the missing field.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What happened?
We attempted to implement
ExactlyOneOf
for a set of fields in our Resource. Aftermake generate
, both fields in the ExactlyOneOf list were marked as "required."We are not clear on the desired behavior of setting this field. Does OpenApiV3Schema support
ExactlyOneOf
validation?How can we reproduce it?
We added two fields to our schema:
After code generation, these fields were both required:
Submitting with one field or the other returned validation errors for the missing field.
The text was updated successfully, but these errors were encountered: