Skip to content

Commit c4f3b26

Browse files
Apply suggestions from Lovisa code review
Co-authored-by: Lovisa Berggren <[email protected]>
1 parent f36dce5 commit c4f3b26

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tools/spectral/ipa/rulesets/IPA-102.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ rules:
66
description: >-
77
Collection identifiers must be in camelCase. Logic includes:<br/>
88
- All path segments that are not path parameters<br/>
9-
- Only the resource identifier part before any colon in custom method paths (e.g., 'resource' in '/resource:customMethod')<br/>
9+
- Only the resource identifier part before any colon in custom method paths (e.g., `resource` in `/resource:customMethod`)<br/>
1010
- Path parameters should also follow camelCase naming<br/>
1111
- Certain values can be exempted via the ignoredValues configuration (e.g., 'v1', 'v2') that can be supplied as `ignoredValues`
1212
argument to the rule<br/>
13-
- Paths with x-xgen-IPA-exception for this rule are excluded from validation<br/>
13+
- Paths with `x-xgen-IPA-exception` for this rule are excluded from validation<br/>
1414
http://go/ipa/102
1515
message: '{{error}} http://go/ipa/102'
1616
severity: warn

tools/spectral/ipa/rulesets/functions/utils/schemaUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Checks if the object has results property
3-
* @param {*} schema
3+
* @param {Object} schema
44
* @returns true if schema object returns results property (pagination), false otherwise
55
*/
66
export function schemaIsPaginated(schema) {
@@ -11,7 +11,7 @@ export function schemaIsPaginated(schema) {
1111
/**
1212
* Checks if schema is an array type of schema
1313
*
14-
* @param {*} schema
14+
* @param {Object} schema
1515
* @returns
1616
*/
1717
export function schemaIsArray(schema) {

0 commit comments

Comments
 (0)