hilleer / vscode-yaml-plus-json

Vscode extension making conversion between yaml and json fast and simple
https://marketplace.visualstudio.com/items?itemName=hilleer.yaml-plus-json
MIT License
23 stars 4 forks source link

Can't convert YAML files with JSON objects that has no spaces... #45

Closed macCesar closed 1 year ago

macCesar commented 2 years ago

I'm new to YAML files.. So I'm sorry if some terms are incorrect.

In the following example, the osver object contains what I called a JSON object...

As you can see.. there is NO space between ios: and the open bracket.. {.. and the file won't be converted...

If I add the space between them.. The file IS converted without a problem...

---
name: Titanium.UI.iOS.BlurView
summary: |
    A <Titanium.UI.iOS.BlurView> object gives you an easy way implement some complex visual effects.
    The blur effect is applied to every view the blur view is added to by default. You can also place the
    blur view above other views and all visible views layered under the blur view are blurred as well.

    For more information on BlurView, please refer to the official [Apple documentation](https://developer.apple.com/documentation/uikit/uivisualeffectview).
    Note: Apple introduced two new constants <Titanium.UI.iOS.BLUR_EFFECT_STYLE_REGULAR> and <Titanium.UI.iOS.BLUR_EFFECT_STYLE_PROMINENT> in
    iOS 10. These are internally mapped to <Titanium.UI.iOS.BLUR_EFFECT_STYLE_LIGHT> and <Titanium.UI.iOS.BLUR_EFFECT_STYLE_EXTRA_LIGHT>.
extends: Titanium.UI.View
platforms: [iphone, ipad, macos]
since: {iphone: "5.4.0", ipad: "5.4.0", macos: "9.2.0"}
osver: {ios:{min: "8.0"}}
properties:
  - name: effect
    summary: The effect you provide for the view.
    type: Number
    constants: Titanium.UI.iOS.BLUR_EFFECT_STYLE_*
    default: undefined (no effect is applied)
hilleer commented 2 years ago

Hi @macCesar

Interesting. I will have a look at this asap. It is probably due to a problem or misconfiguration of the moduels used to do the conversion.

macCesar commented 2 years ago

Thanks Hilleer!! 👏🏻

hilleer commented 2 years ago

Hi @macCesar

While investing this issue I found this post that might you might find helpful and might be related to this issue.

hilleer commented 1 year ago

Hi @macCesar

Sorry about the time it took to get back to you here. Whatever online yaml validation tool I use, it validates with errors when pasting content like you described, while there's no errors with the space you described.

Screenshot 2022-11-19 at 23 02 50

Closing as this do not seem to be an issue with the extension, configuration of converter or like-wise. Please don't hesitate to add new info or open other tickets if you have any other issues!