aframevr / aframe-registry

[DISCONTINUED] Curated collection of community A-Frame components.
https://aframe.io/registry/
MIT License
77 stars 39 forks source link

New JSON structure #5

Closed fernandojsg closed 8 years ago

fernandojsg commented 8 years ago

Following the discussion we had (@dmarcos, @ngokevin) about it last week...

The current structure is:

{
  "collider" : {
    "author": "Diego Marcos",
    "description": "Triggers events when object collide",
    "url": "https://rawgit.com/dmarcos/a-invaders/31f5a7/js/components/collider.js"
  },
  "explode" : {
    "author": "Diego Marcos",
    "description": "Makes the geometry explode",
    "url": "https://rawgit.com/dmarcos/a-invaders/31f5a7/js/components/explode.js"
  },
  "spawner" : {
    "author": "Diego Marcos",
    "description": "Spawns an entity on an event",
    "url": "https://rawgit.com/dmarcos/a-invaders/31f5a7/js/components/spawner.js"
  }
}

Add some new parameters:

With the changes proposed the JSON could looks like the following:

{
  "collider": {
    "author": "Diego Marcos",
    "description": "Triggers events when object collide",
    "url": {
      "0.3.0": "http://blabla",
      "0.4.0": "http://blabla4"
    },
    "help_url": "http://helpurl",
    "screenshot_url": "http://screenshot.png",
    "schema_grouping": [
      {
        "name": "size",
        "attributes": [
          "width",
          "height",
          "width"
        ]
      },
      {
        "name": "segments",
        "attributes": [
          "segmentwidth",
          "segmentheight",
          "segmentwidth"
        ]
      }
    ]
  },
  "explode": {
    "author": "Diego Marcos",
    "description": "Makes the geometry explode",
    "url": {
      "0.3.0": "http://blabla"
    },
    "help_url": "http://helpurl"
  },
  "spawner": {
    "author": "Diego Marcos",
    "description": "Spawns an entity on an event",
    "url": {
      "0.3.0": "http://blabla"
    }
  }
}
fernandojsg commented 8 years ago

yeah! It was a nice discussion šŸ‘

donmccurdy commented 8 years ago

šŸŽ‰