Comments (9)
I found a configurable rule is causing this behavior
rule/header-param-exists:
subject:
type: Parameter
property: in
where:
- subject:
type: Operation
property: parameters
assertions:
defined: true
assertions:
const: header
I was playing around with trying to find a solution to Redocly/redocly-cli#1286
from redocly-vs-code.
Yes, this is without the message
property.
from redocly-vs-code.
Thank you @jeremyfiel for reporting this!
from redocly-vs-code.
@jeremyfiel so if you remove the configurable rule the formatting gets back to normal?
from redocly-vs-code.
Yes, something with the reporting and the way this rule is written causes the invalid output
from redocly-vs-code.
@RomanHotsiy I found this happens again with this new rule I was testing:
The formatting issue seems to be in both VSC and the cli output
rules:
rule/operation-tags-must-be-defined:
severity: error
subject:
type: Operation
assertions:
required:
- tags
from redocly-vs-code.
I think I found the root cause of this formatting error. If I omit message
in the configurable rule, it creates this formatting error.
from redocly-vs-code.
@jeremyfiel I think it has something to do with OS. On Mac I get correct problems' output formatting:
Do you use Windows?
from redocly-vs-code.
I do use windows. But if you remove the message
property it doesn't give you incorrect formatting?
from redocly-vs-code.
Related Issues (20)
- Preview docs doesn't work for large definitions
- Why is there no root directory support in $ref in paths? HOT 2
- Preview window gets blank while using it with multiple files
- Wrong `theme.openapi` autocompletion in *redocly.yaml*
- Cursor context has active button 'Go to root' in any yaml file HOT 1
- Type null in OpenAPI 3.0
- Support config files located in nested directories HOT 1
- Cannot render docs offline
- Parsing other yaml files leads to problem report without a source HOT 7
- Configurable rule not reporting problems HOT 6
- Multiline text is inlined after saving/formatting HOT 2
- Disable config init prompt for empty projects HOT 1
- Highlighting error on OpenApi Version HOT 2
- Should not complain about missing server if you yaml contains only components HOT 3
- Idea for VS Code: add openapi versions autocompletion
- VS Code. Duplications in suggestions
- VS Code. Incorrect indentation HOT 1
- Extension does not take into account `.redocly.lint-ignore.yaml` file HOT 5
- Performance issue on medium size project HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redocly-vs-code.