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

fix: Removing pascal case rule for query and path params. Changing the spec files for orgs api #116

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
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
16 changes: 8 additions & 8 deletions spec/json/twilio_iam_organizations.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
}
},
{
"name": "Filter",
"name": "filter",
"in": "query",
"schema": {
"type": "string"
Expand Down Expand Up @@ -2042,7 +2042,7 @@
}
},
{
"name": "Scope",
"name": "scope",
"in": "query",
"required": false,
"schema": {
Expand Down Expand Up @@ -2559,7 +2559,7 @@
"operationId": "FetchAuthorize",
"parameters": [
{
"name": "Response_type",
"name": "response_type",
"in": "query",
"description": "Response Type",
"schema": {
Expand All @@ -2568,7 +2568,7 @@
}
},
{
"name": "Client_id",
"name": "client_id",
"in": "query",
"description": "The Client Identifier",
"schema": {
Expand All @@ -2577,7 +2577,7 @@
}
},
{
"name": "Redirect_uri",
"name": "redirect_uri",
"in": "query",
"description": "The url to which response will be redirected to",
"schema": {
Expand All @@ -2586,7 +2586,7 @@
}
},
{
"name": "Scope",
"name": "scope",
"in": "query",
"description": "The scope of the access request",
"schema": {
Expand All @@ -2595,7 +2595,7 @@
}
},
{
"name": "State",
"name": "state",
"in": "query",
"description": "An opaque value which can be used to maintain state between the request and callback",
"schema": {
Expand All @@ -2614,7 +2614,7 @@
"examples": {
"fetch": {
"value": {
"redirect_to": "https://www.twilio.com/authorize?Response_type=code&Client_id=OQ7cda1a615f05a95634e643aaaf7081d7&Redirect_uri=www.twilio.com&Scope=offline_access&State=xvz"
"redirect_to": "https://www.twilio.com/authorize?response_type=code&client_id=OQ7cda1a615f05a95634e643aaaf7081d7&redirect_uri=www.twilio.com&scope=offline_access&state=xvz"
}
}
}
Expand Down
16 changes: 8 additions & 8 deletions spec/yaml/twilio_iam_organizations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ paths:
type: string
format: OrganizationSid
example: OR33f4f3aa6fffe840d000f8ef22e883db
- name: Filter
- name: filter
in: query
schema:
type: string
Expand Down Expand Up @@ -1365,7 +1365,7 @@ paths:
type: string
format: Sid
example: USa36de9717566c7eb6363671f54b87ba9
- name: Scope
- name: scope
in: query
required: false
schema:
Expand Down Expand Up @@ -1712,31 +1712,31 @@ paths:
summary: Retrieves authorize uri
operationId: FetchAuthorize
parameters:
- name: Response_type
- name: response_type
in: query
description: Response Type
schema:
type: string
example: code
- name: Client_id
- name: client_id
in: query
description: The Client Identifier
schema:
type: string
example: OQ7cda1a615f05a95634e643aaaf7081d7
- name: Redirect_uri
- name: redirect_uri
in: query
description: The url to which response will be redirected to
schema:
type: string
example: www.twilio.com
- name: Scope
- name: scope
in: query
description: The scope of the access request
schema:
type: string
example: offline_access
- name: State
- name: state
in: query
description: An opaque value which can be used to maintain state between the
request and callback
Expand All @@ -1752,7 +1752,7 @@ paths:
examples:
fetch:
value:
redirect_to: https://www.twilio.com/authorize?Response_type=code&Client_id=OQ7cda1a615f05a95634e643aaaf7081d7&Redirect_uri=www.twilio.com&Scope=offline_access&State=xvz
redirect_to: https://www.twilio.com/authorize?response_type=code&client_id=OQ7cda1a615f05a95634e643aaaf7081d7&redirect_uri=www.twilio.com&scope=offline_access&state=xvz
description: Found
/v1/token:
servers:
Expand Down
11 changes: 0 additions & 11 deletions spectral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@ rules:
functionOptions:
type: pascal

pascal-case-param-name-rule:
severity: error
recommended: true
message: Path parameter names should be capitalized.
type: style
given: "$.paths.[*].parameters.[*].name"
then:
function: pattern
functionOptions:
match: "^[A-Z].*"

require-openapi-rule:
severity: error
message: openapi field must be present with a non empty value
Expand Down
Loading