Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

no sourcemap for references #386

Closed
tu1ly opened this issue Sep 6, 2016 · 2 comments
Closed

no sourcemap for references #386

tu1ly opened this issue Sep 6, 2016 · 2 comments
Labels

Comments

@tu1ly
Copy link

tu1ly commented Sep 6, 2016

Given that xxx is the reference to xxx dataStructure object

Current

The dataStructure where xxx is only object has no sourcemaps

{
   "element":"dataStructure",
   "meta":{

   },
   "attributes":{

   },
   "content":[
      {
         "element":"xxx",
         "meta":{

         },
         "attributes":{

         }
      }
   ]
}

Expected

The dataStructure where xxx is only object has sourcemaps

{
   "element":"dataStructure",
   "meta":{

   },
   "attributes":{

   },
   "content":[
      {
         "element":"xxx",
         "meta":{

         },
         "attributes":{
            "sourceMap":[
               {
                  "element":"sourceMap",
                  "meta":{

                  },
                  "attributes":{

                  },
                  "content":[
                     [
                        791,
                        40
                     ]
                  ]
               }
            ]
         }
      }
   ]
}
@pksunkara
Copy link
Contributor

Unfortunately, I don't remember the issue anymore and can't make a small example here. I will talk to @tu1ly again and get this clarified. /cc @kylef

@pksunkara
Copy link
Contributor

An example blueprint is following:

# GET /
+ Response 200
    + Attributes
        + (A)

@kylef kylef added the mson label Sep 16, 2016
klokane pushed a commit that referenced this issue Sep 21, 2016
klokane pushed a commit that referenced this issue Sep 21, 2016
kylef pushed a commit that referenced this issue Jul 7, 2017
Add warning for named object as array member
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants