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

docs: fix typos in readme documents #89

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Coverage Status](https://coveralls.io/repos/github/kcl-lang/kcl-openapi/badge.svg)](https://coveralls.io/github/kcl-lang/kcl-openapi)

The work on this project is mainly based on [go-swagger](https://github.com/go-swagger/go-swagger), and this project just adds some
KCL-specific templates and language features on it. We are grateful and sincerely respectful for the outstanding work
KCL-specific templates and language features to it. We are grateful and sincerely respectful for the outstanding work
in [go-swagger](https://github.com/go-swagger/go-swagger). Meanwhile, we are working on making the customized features separated from the
basic OpenAPI logic in go-swagger.

Expand All @@ -24,7 +24,7 @@ The kcl-openapi tool can be installed in both ways:

- [go install](#1-go-install)
- [curl|sh install (MacOS & Linux)](#2-curlsh-install-macos--linux)
- [download from release](#3-dowload-from-release)
- [download from release](#3-download-from-release)

## 1 go install

Expand All @@ -34,20 +34,20 @@ The kcl-openapi tool can be installed in both ways:

## 2 Curl|sh install (MacOS & Linux)

If you don't have go, you can install the CLI with this one-liner:
If you don't have to go, you can install the CLI with this one-liner:

```shell
curl -fsSL https://kcl-lang.io/script/install-kcl-openapi.sh | /bin/bash
```

## 3 Dowload from release
## 3 Download from release

```shell
# 1. download the released binary from:
# https://github.com/kcl-lang/kcl-openapi/releases

# 2. Unzip the package and add the binary location to PATH
export PATH="<Your directory to store KCLOpenapi binary>:$PATH"
export PATH="<Your directory to store KCLOpenAPI binary>:$PATH"
```

## Features
Expand All @@ -72,7 +72,7 @@ Alternatively, if you may want to generate them yourself, please refer [Generate

The tool can also translate
the [Kubernetes CRD](https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/) to KCL models.
By parsing the spec.versions[n].schema.openAPIV3Schema (n means the latest version of the spec will be used) section of the CRD, the KCL
By parsing the `spec.versions[n].schema.openAPIV3Schema` (n means the latest version of the spec will be used) section of the CRD, the KCL
OpenAPI tool will extract the structural schema and generate the corresponding KCL representation.

The command is as follows:
Expand All @@ -83,8 +83,7 @@ The command is as follows:

## KCL OpenAPI Spec

The [KCL OpenAPI Spec](https://kcl-lang.io/docs/reference/cli/openapi/spec) defines a complete specification of how OpenAPI objects are
mapping to KCL language elements.
The [KCL OpenAPI Spec](https://kcl-lang.io/docs/reference/cli/openapi/spec) defines a complete specification of how OpenAPI objects are mapped to KCL language elements.

## Ask for help

Expand Down
Loading