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

Add util function to convert package/type path to OpenAPI name #16

Merged
merged 1 commit into from
Oct 30, 2017

Conversation

roycaihw
Copy link
Member

Add a function to convert the package/type path (e.g. parsed by gengo) into openapi name.

Examples:
Input: k8s.io/api/core/v1.Pod
Output: io.k8s.api.core.v1.Pod

Input: k8s.io/api/core/v1
Output: io.k8s.api.core.v1

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 30, 2017
@roycaihw
Copy link
Member Author

cc @mbohlool

@mbohlool
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 Oct 30, 2017
@mbohlool mbohlool merged commit d52097a into kubernetes:master Oct 30, 2017
@roycaihw roycaihw deleted the name_util branch February 1, 2018 22:19
sttts pushed a commit to sttts/kube-openapi that referenced this pull request Nov 5, 2020
sttts pushed a commit to sttts/kube-openapi that referenced this pull request Nov 5, 2020
Completed test for ServeError with nil Error, as discussed in kubernetes#13
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants