You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run the spectral lint command with the core function, it returns the warning message with which line number it has a problem.
Now I want to implement the same in a custom function.
for example
openapi:
info:
description: This is a simple API
version: "1.0.0"
title: Simple Inventory API
Ruleset:
9:10 warning casing-ruleset must be camel case info.title
✖ 1 problem (0 errors, 1 warning, 0 infos, 0 hints)
The title is present in line number 9 in the open API.
In the same way, I want to display the message in a custom function.
How to display the open API line number in custom functions?
This discussion was converted from issue #2196 on June 30, 2022 14:58.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If I run the spectral lint command with the core function, it returns the warning message with which line number it has a problem.
Now I want to implement the same in a custom function.
for example
openapi:
then: {
function: casing,
functionOptions: {
type: camel
},
},
Output:
Beta Was this translation helpful? Give feedback.
All reactions