minimal-yaml icon indicating copy to clipboard operation
minimal-yaml copied to clipboard

Mangled round trip

Open jayvdb opened this issue 2 years ago • 0 comments

I am trying to reformat a openapi 3 yaml file, by parsing and serialising it again, however it is being managed, only slightly.

In the following, I was hoping to have the - indented, which minimal-yaml is doing, but then the name is pushed to the next line in a strange position.

@@ -67,7 +71,8 @@ paths:
       description : ''
       operationId : put_image
       parameters :
-      - name: image_id
+        -
+          name : image_id
           in : path
           description : Image id
           required : true
@@ -75,14 +80,16 @@ paths:
           schema :
             type : string
             format : uuid
-      - name: uber-trace-id
+            - name
+          : uber-trace-id
           in : header
           description : OpenTelemetry jaeger header
           required : false
           deprecated : false
           schema :
             type : string
-      - name: traceparent
+            - name
+          : traceparent
           in : header
           description : OpenTelemetry header
           required : false

jayvdb avatar Oct 20 '22 03:10 jayvdb