Add an id to schema
Extract resources definition