Skip to content

Commit

Permalink
s\bhf
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroAntunesCosta committed Oct 6, 2023
1 parent 53ceaea commit db4fa42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .spectral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ rules:
functionOptions:
match: "^.*[.]$"

must-end-endpoint-descriptions-with-period:
description: All endpoint descriptions must end with a period (".").
severity: error
given: "$.paths.*[?( @property === 'get' || @property === 'put' || @property === 'post' || @property === 'delete' || @property === 'options' || @property === 'head' || @property === 'patch' || @property === 'trace' )].description"
should-write-in-sentence-case:
description: All summaries and descriptions must use sentence case (start with a capital letter).
severity: warn
given: "$..*[?( @property === 'summary' || @property === 'description' )]"
then:
function: pattern
functionOptions:
match: "^.*[.]$"
match: "^[A-Z].*$"
4 changes: 2 additions & 2 deletions VTEX - VTEX ID API.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
"tags": [
"Authentication"
],
"summary": "Enable or disable repeated passwords",
"summary": "Enable or Disable repeated passwords",
"description": "Defines if user passwords can be repeated in your store. \r\n\r\n## Permissions\r\n\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) to be able to successfully run this request. Otherwise they will receive a status code `403` error. These are the applicable resources for this endpoint:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| --------------- | ----------------- | ----------------- |\r\n| VTEX ID | Identity Providers | **Write Identity Providers** |\r\n\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.",

Check warning on line 221 in VTEX - VTEX ID API.json

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

should-write-in-sentence-case

All summaries and descriptions must use sentence case (start with a capital letter).
"parameters": [
{
Expand Down Expand Up @@ -269,7 +269,7 @@
"tags": [
"Authentication"
],
"summary": "Expire user password",
"summary": "expire user password",

Check warning on line 272 in VTEX - VTEX ID API.json

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

should-write-in-sentence-case

All summaries and descriptions must use sentence case (start with a capital letter).
"description": "Expires an user's password in your store.\r\n.\r\n## Permissions.\r\n.\r\nAny user or [application key](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#application-keys) must have at least one of the appropriate [License Manager resources](https:\/\/help.vtex.com\/en\/tutorial\/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) to be able to successfully run this request. Otherwise they will receive a status code `403` error. These are the applicable resources for this endpoint:.\r\n.\r\n| **Product** | **Category** | **Resource** |.\r\n| --------------- | ----------------- | ----------------- |.\r\n| VTEX ID | User Management | **Expire User Password** |.\r\n.\r\nThere are no applicable [predefined roles](https:\/\/help.vtex.com\/en\/tutorial\/predefined-roles--jGDurZKJHvHJS13LnO7Dy) for this resource list. You must [create a custom role](https:\/\/help.vtex.com\/en\/tutorial\/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) and add at least one of the resources above in order to use this endpoint.\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https:\/\/developers.vtex.com\/docs\/guides\/authentication-overview#machine-authentication).\r\n.\r\n>\u2757 To prevent integrations from having excessive permissions, consider the [best practices for managing app keys](https:\/\/help.vtex.com\/en\/tutorial\/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm) when assigning License Manager roles to integrations.",

Check warning on line 273 in VTEX - VTEX ID API.json

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

should-write-in-sentence-case

All summaries and descriptions must use sentence case (start with a capital letter).
"parameters": [
{
Expand Down

0 comments on commit db4fa42

Please sign in to comment.