Skip to content

Commit

Permalink
spectral improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
bszwarc committed Jul 11, 2023
1 parent 6cfe586 commit ff026db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spectral/ensureSchemaHasType.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = (schema, _, paths) => {
if (schema.oneOf) { return }
if (!schema.type && !schema['$ref']) {
return [{
message: `${paths.target ? paths.target.join('.') : 'type or $ref'} is not truthy`,
message: `${paths.target ? paths.target.join('.') : 'type or $ref'} requires a type property`,
}]
}
}
2 changes: 1 addition & 1 deletion src/spectral/ensureSimpleDescription.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = (item, _, paths) => {
if (!item.description) {
return [
{
message: `${paths.target ? paths.target.join('.') : 'property'} requires description.`,
message: `${paths.target ? paths.target.join('.') : 'property'} requires a description`,
}
]
}
Expand Down

0 comments on commit ff026db

Please sign in to comment.