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

Remove 'Description' and 'Required' from OpenAPI schema root layer #442

Merged
merged 1 commit into from Aug 20, 2018

Conversation

MrHohn
Copy link
Member

@MrHohn MrHohn commented Aug 20, 2018

This is for fixing an incompatibility issue with kubernetes/enhancements#571.

/assign @rramkumar1
cc @Liujingfang1

Note: The Description entry is manually removed, as adding omitempty doesn't seem to stop generating it. Fixed by removing struct comment.

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 20, 2018
@@ -32,7 +32,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
"k8s.io/ingress-gce/pkg/apis/backendconfig/v1beta1.BackendConfig": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "BackendConfig is a specification for a BackendConfig resource",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the description is from line 27 in types.go

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, let me see if removing that works.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it works :) Update PR, thanks!

@MrHohn MrHohn force-pushed the remove-desc-required-openapi branch from d9832eb to e84036f Compare August 20, 2018 18:42
@rramkumar1
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 20, 2018
@MrHohn MrHohn merged commit 22a3ed5 into kubernetes:master Aug 20, 2018
k8s-ci-robot added a commit that referenced this pull request Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants