Skip to content

Commit

Permalink
Removing pascal case rule for query and path params. Changing the spe…
Browse files Browse the repository at this point in the history
…c files for orgs api (#116)
  • Loading branch information
AsabuHere authored Jul 22, 2024
1 parent 9dc242b commit df28b6c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 27 deletions.
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

0 comments on commit df28b6c

Please sign in to comment.