Skip to content

Commit

Permalink
fix get type for null object in ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
coliu19 committed Jul 7, 2023
1 parent e665e09 commit f487eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-insights-openapi-ruleset.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ export default {
'description': 'Representation fields use format-native true/false values for booleans.',
'message': 'Representation fields use format-native true/false values for booleans (https://developer.cisco.com/docs/api-insights/#!api-guidelines-analyzer)',
'severity': 'warn',
'given': "$.paths.*.*.responses.*.schema..[?( @.type === 'string' && @.enum )]",
'given': "$.paths.*.*.responses.*.schema..[?(@ && @.type === 'string' && @.enum )]",
'formats': [oas2],
'then': {
'field': 'enum',
Expand Down

0 comments on commit f487eb8

Please sign in to comment.