Skip to content

Support for marker kubebuilder:validation:Required/Optional#201

Open
swathinsankaran wants to merge 1 commit into
elastic:masterfrom
swathinsankaran:required-optional-marker-fix
Open

Support for marker kubebuilder:validation:Required/Optional#201
swathinsankaran wants to merge 1 commit into
elastic:masterfrom
swathinsankaran:required-optional-marker-fix

Conversation

@swathinsankaran

@swathinsankaran swathinsankaran commented Jun 21, 2026

Copy link
Copy Markdown

fixes #198

Summary

The doc created for the markers Required/Optional had invalid characters that resulted in improper parsing and rendering of the created document.

Details

The parser did not have the logic to parse the Required/Optional markers. The commit adds the logic as well as corrects the invalid character that resulted in improper rendering of the created document.

Changes

  • Adds full support for the markers kubebuilder:validation:Required and kubebuilder:validation:Optional.
  • Fixes the errors seen in unit tests due to the change in the format.

The doc created for the markers Required/Optional were having
invalid characters that was resulting in the improper parsing
and rendering the created document.

Details of the change:
  - Adds full support for the markers kubebuilder:validation:Required
    and kubebuilder:validation:Optional.
  - Fixes the errors seen in unit tests due to the change in the format.
@cla-checker-service

Copy link
Copy Markdown

❌ Author of the following commits did not sign a Contributor Agreement:
0905fab

Please, read and sign the above mentioned agreement if you want to contribute to this project

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

Successfully merging this pull request may close these issues.

Support for +kubebuilder:validation:Required and omitempty

1 participant