Coder Social home page Coder Social logo

Comments (9)

jeremyfiel avatar jeremyfiel commented on June 19, 2024 1

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.

tatomyr avatar tatomyr commented on June 19, 2024 1

Yes, this is without the message property.

from redocly-vs-code.

tatomyr avatar tatomyr commented on June 19, 2024

Thank you @jeremyfiel for reporting this!

from redocly-vs-code.

RomanHotsiy avatar RomanHotsiy commented on June 19, 2024

@jeremyfiel so if you remove the configurable rule the formatting gets back to normal?

from redocly-vs-code.

jeremyfiel avatar jeremyfiel commented on June 19, 2024

Yes, something with the reporting and the way this rule is written causes the invalid output

from redocly-vs-code.

jeremyfiel avatar jeremyfiel commented on June 19, 2024

@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

image

image

from redocly-vs-code.

jeremyfiel avatar jeremyfiel commented on June 19, 2024

@RomanHotsiy @tatomyr

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.

tatomyr avatar tatomyr commented on June 19, 2024

@jeremyfiel I think it has something to do with OS. On Mac I get correct problems' output formatting:
Screenshot 2024-01-19 at 20 19 14

Do you use Windows?

from redocly-vs-code.

jeremyfiel avatar jeremyfiel commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.