-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Documentation Rewrite #417
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few comments. One other thing that you haven't touched is, fields
. We got a request on the forum to have more documentation on what fields they can use and how.
3e0c592
to
45ede47
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few comments. Looking good at first glance, but when just briefly through it.
Co-Authored-By: Jakub Rożek <P0lip@users.noreply.github.com>
Co-Authored-By: Jakub Rożek <P0lip@users.noreply.github.com>
@tbarn fixed most of it, but what are |
Someone asked:
I thought it would be helpful for people writing custom rulesets. |
Right but I don’t know what fields this person is talking about. |
Oooooh ok the way the question was worded by the original person is funny. It’s just whatever is in the target you selected. You select info then all the fields in info are available. I’ll add a note so that’s clear.
…--
Phil Sturgeon
@philsturgeon
On Aug 2, 2019, at 21:58, Taylor Barnett ***@***.***> wrote:
Anything that goes in these:
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
4174110
to
b813caf
Compare
Done!
…--
Phil Sturgeon
@philsturgeon
On Aug 2, 2019, at 21:58, Taylor Barnett ***@***.***> wrote:
Anything that goes in these:
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Looking good. I'll approve if you remove all the occurrences of "just." |
b813caf
to
96421bf
Compare
just removed the justs! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't looked at actual content yet, but have some quick structural things related to platform publishing for you to take a look at. LMK if you have any questions about it!
3bbeb6f
de07aa2
to
083a2cb
Compare
083a2cb
to
ff8031f
Compare
|
||
## Features | ||
|
||
- Create custom rules to lint JSON or YAML objects | ||
- Ready to use rules to validate and lint OpenAPI v2 _and_ v3 documents | ||
- Use JSON path to apply rules to specific parts of your objects | ||
- Built-in set of functions to help [create custom rules](./docs/rulesets.md). Functions include pattern checks, parameter checks, alphabetical ordering, a specified number of characters, provided keys are present in an object, etc. | ||
- Built-in set of functions to help [create custom rules](https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/getting-started/rulesets.md#adding-a-rule). Functions include pattern checks, parameter checks, alphabetical ordering, a specified number of characters, provided keys are present in an object, etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Built-in set of functions to help [create custom rules](https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/getting-started/rulesets.md#adding-a-rule). Functions include pattern checks, parameter checks, alphabetical ordering, a specified number of characters, provided keys are present in an object, etc. | |
- Built-in set of functions to help [create custom rules](docs/gh/stoplightio/spectral/docs/getting-started/rulesets.md#adding-a-rule). Functions include pattern checks, parameter checks, alphabetical ordering, a specified number of characters, provided keys are present in an object, etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @philsturgeon shouldnt that be relative?
### CLI | ||
|
||
After installing via one of the methods above, Spectral can be used via your command-line. Take a look at the [CLI docs](./docs/cli.md) for information on the options available. | ||
For more installation options, see [Getting Started > Installation](https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/getting-started/installation.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For more installation options, see [Getting Started > Installation](https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/getting-started/installation.md) | |
For more installation options, see [Getting Started > Installation](docs/getting-started/installation.md) |
- [Enabling specific OpenAPI rules](./docs/rulesets.md#enabling-specific-openapi-rules) | ||
- [Disabling specific OpenAPI rules](./docs/rulesets.md#disabling-specific-openapi-rules) | ||
- [Changing the severity of a rule](./docs/rulesets.md#changing-the-severity-of-a-rule) | ||
After [installation](https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/getting-started/installation.md) take a look at our [getting started documentation](https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/getting-started/concepts.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After [installation](https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/getting-started/installation.md) take a look at our [getting started documentation](https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/getting-started/concepts.md). | |
After [installation](docs/getting-started/installation.md) take a look at our [getting started documentation](https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/getting-started/concepts.md). |
## Programmatic usage | ||
|
||
Spectral is written in TypeScript (then compiled to JavaScript) and can be used directly for when you need to use Spectral programmatically. Take a look at our ["JavaScript API documentation"](docs/js-api.md). | ||
- [Adding a rule](https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/getting-started/rulesets.md#adding-a-rule) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- [Adding a rule](https://stoplight.io/p/docs/gh/stoplightio/spectral/docs/getting-started/rulesets.md#adding-a-rule) | |
- [Adding a rule](docs/getting-started/rulesets.md#adding-a-rule) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing as the README is not going to be read by platform these links will not be transformed to docs URLs and we'll be sending our GitHub users to the markdown files here in the repo. This is temporary until we get symlinks supported in Studio, and can symlink the README.md to docs/intro.md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @philsturgeon I did another pass. Added one or two suggestions (change URLs from absolute to relative) but not sure if they make sense. If they do then please fix and feel free to merge.
New documentation covering CLI and JS APIs, rulesets, workflows, core rules, etc.
* docs: include 2.x/3.x to 4.0 migration guide (#381) * docs: include 2.x/3.x to 4.0 migration guide * cleaned up migration guide * remove periods for consistency * docs: feedback from @philsturgeon * docs: cover recommended property * clearing a few things up * Update 4.0.md * fix typo * Documentation Rewrite (#417) New documentation covering CLI and JS APIs, rulesets, workflows, core rules, etc.
* docs: include 2.x/3.x to 4.0 migration guide (#381) * docs: include 2.x/3.x to 4.0 migration guide * cleaned up migration guide * remove periods for consistency * docs: feedback from @philsturgeon * docs: cover recommended property * clearing a few things up * Update 4.0.md * fix typo * Documentation Rewrite (#417) New documentation covering CLI and JS APIs, rulesets, workflows, core rules, etc.
Fixes #302.
Checklist
Does this PR introduce a breaking change?